OSSF Scorecard #162
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: | |
branch_protection_rule: {} | |
schedule: | |
- cron: "26 0 * * 6" | |
push: | |
branches: ["main"] | |
permissions: read-all | |
jobs: | |
analysis: | |
name: "Analysis: Scorecard" | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
id-token: write | |
contents: read | |
actions: read | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: "Analysis: OSSF Scorecard" | |
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true | |
- name: "Artifact: SARIF Report" | |
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
- name: "Publish: Code Scanning" | |
uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10 | |
with: | |
sarif_file: results.sarif |