Scorecard supply-chain security #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scorecard supply-chain security | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
analysis: | |
name: Scorecard analysis | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write # Needed to upload the results to code-scanning dashboard. | |
id-token: write # Needed to publish results and get a badge (see publish_results below). | |
contents: read # Uncomment the permissions if installing in a private repository. | |
actions: read # Uncomment the permissions if installing in a private repository. | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
persist-credentials: false | |
- name: "Run analysis" | |
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.3.2 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true # Publish results to OpenSSF REST API for easy access by consumers | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
# Upload the results to GitHub's code scanning dashboard (optional). | |
- name: "Upload to code-scanning" | |
uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10 | |
with: | |
sarif_file: results.sarif |