scorecard #3
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '23 22 * * 1' | |
push: | |
branches: | |
- 'master' | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
permissions: | |
contents: read | |
jobs: | |
analysis: | |
runs-on: ubuntu-latest | |
permissions: | |
# same as global permissions | |
contents: read | |
# needed to publish results and get a badge (see publish_results below) | |
id-token: write | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
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@v4 | |
with: | |
path: results.sarif | |
retention-days: 5 | |
if-no-files-found: error |