Skip to content

Update OpenSSF scorecard supply-chain security #41

Update OpenSSF scorecard supply-chain security

Update OpenSSF scorecard supply-chain security #41

name: Update OpenSSF scorecard supply-chain security
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 0'
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
permissions:
security-events: write
id-token: write
steps:
- name: "Checkout code"
uses: actions/checkout@v6
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/[email protected]
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: "Upload artifact"
uses: actions/upload-artifact@v6
with:
name: SARIF file
path: results.sarif
retention-days: 8
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: results.sarif