mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.0 to 4.31.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](4e94bd11f7...0499de31b9)
---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
	
			
		
			
				
	
	
		
			66 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
# This workflow uses actions that are not certified by GitHub. They are provided
 | 
						|
# by a third-party and are governed by separate terms of service, privacy
 | 
						|
# policy, and support documentation.
 | 
						|
 | 
						|
name: Scorecard supply-chain security
 | 
						|
on:
 | 
						|
  # For Branch-Protection check. Only the default branch is supported. See
 | 
						|
  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
 | 
						|
  branch_protection_rule:
 | 
						|
  # To guarantee Maintained check is occasionally updated. See
 | 
						|
  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
 | 
						|
  schedule:
 | 
						|
    - cron: '20 7 * * 2'
 | 
						|
  push:
 | 
						|
    branches: ["master"]
 | 
						|
 | 
						|
# Declare default permissions as read only.
 | 
						|
permissions: read-all
 | 
						|
 | 
						|
jobs:
 | 
						|
  analysis:
 | 
						|
    name: Scorecard analysis
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    permissions:
 | 
						|
      # Needed to upload the results to code-scanning dashboard.
 | 
						|
      security-events: write
 | 
						|
      # Needed to publish results and get a badge (see publish_results below).
 | 
						|
      id-token: write
 | 
						|
      contents: read
 | 
						|
      actions: read
 | 
						|
      # To allow GraphQL ListCommits to work
 | 
						|
      issues: read
 | 
						|
      pull-requests: read
 | 
						|
      # To detect SAST tools
 | 
						|
      checks: read
 | 
						|
 | 
						|
    steps:
 | 
						|
      - name: Harden the runner (Audit all outbound calls)
 | 
						|
        uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
 | 
						|
        with:
 | 
						|
          egress-policy: audit
 | 
						|
 | 
						|
      - name: "Checkout code"
 | 
						|
        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
 | 
						|
        with:
 | 
						|
          persist-credentials: false
 | 
						|
 | 
						|
      - name: "Run analysis"
 | 
						|
        uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
 | 
						|
        with:
 | 
						|
          results_file: results.sarif
 | 
						|
          results_format: sarif
 | 
						|
          publish_results: true
 | 
						|
 | 
						|
      - name: "Upload artifact"
 | 
						|
        uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
 | 
						|
        with:
 | 
						|
          name: SARIF file
 | 
						|
          path: results.sarif
 | 
						|
          retention-days: 5
 | 
						|
 | 
						|
      - name: "Upload to code-scanning"
 | 
						|
        uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
 | 
						|
        with:
 | 
						|
          sarif_file: results.sarif
 |