Skip to content

Scorecard analysis

Scorecard analysis #6

name: Scorecard analysis
on:
workflow_dispatch:
schedule:
# Weekly on Monday at 08:00 UTC
- cron: "0 8 * * 1"
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
if: github.repository_owner == 'microsoft'
runs-on: ubuntu-latest
permissions:
security-events: write # Needed for Code scanning upload
id-token: write # Needed for GitHub OIDC token if publish_results is true
steps:
- name: "Checkout code"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda # v2.16.4
with:
sarif_file: results.sarif