Skip to content

ci: fix Dependabot auto-merge (wait for checks + merge without branch… #151

ci: fix Dependabot auto-merge (wait for checks + merge without branch…

ci: fix Dependabot auto-merge (wait for checks + merge without branch… #151

Workflow file for this run

name: OSSF Scorecard
on:
push:
branches:
- main
# Weekly scheduled scan.
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:
concurrency:
group: scorecard-${{ github.ref }}
cancel-in-progress: true
# The Scorecard action requires ONLY read permissions at the workflow level.
# Any write permission in any job of the same workflow causes the API to reject
# the results. Keep this workflow dedicated to the scorecard job only.
permissions:
contents: read
jobs:
scorecard:
name: OSSF Scorecard
runs-on: ubuntu-latest
timeout-minutes: 20
# Only run on default branch to avoid token permission issues on forks.
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
permissions:
contents: read
security-events: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Run Scorecard analysis
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: scorecard-results.sarif
results_format: sarif
publish_results: true
- name: Upload Scorecard SARIF
uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4
with:
sarif_file: scorecard-results.sarif
category: scorecard