OSSF Scorecard #349
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: OSSF Scorecard | |
on: | |
push: | |
# Only the default branch is supported. | |
branches: | |
- main | |
schedule: | |
# Weekly on Saturdays. | |
- cron: '30 1 * * 6' | |
permissions: read-all | |
jobs: | |
analysis: | |
name: Scorecard analysis | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
id-token: write | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: "Run analysis" | |
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.0.0-alpha.2 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# Publish the results for public repositories to enable scorecard badges. For more details, see | |
# https://github.com/ossf/scorecard-action#publishing-results. | |
# For private repositories, `publish_results` will automatically be set to `false`, regardless | |
# of the value entered here. | |
publish_results: true | |
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts | |
# Optional. | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v2 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
- name: "Upload SARIF results" | |
uses: github/codeql-action/upload-sarif@b43ac1c23f7541b1939bccfc4255db76ae3cd3dd # v1 | |
with: | |
sarif_file: results.sarif |