.github/workflows/scorecard.yml
name: Analyze
on:
push:
permissions: read-all
jobs:
Scorecard:
environment: staging
runs-on: ubuntu-latest
permissions:
security-events: write # to upload the results to code-scanning dashboard
id-token: write # to publish_results and get a badge
steps:
- uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish_results: true
results_file: results.sarif
results_format: sarif
- uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda
with:
sarif_file: results.sarif