Skip to content

[StepSecurity] Apply security best practices #29

[StepSecurity] Apply security best practices

[StepSecurity] Apply security best practices #29

Workflow file for this run

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@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
with:
egress-policy: audit
- name: "Setup: Checkout"
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- name: "Analysis: OSSF Scorecard"
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: "Artifact: SARIF Report"
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: "Publish: Code Scanning"
uses: github/codeql-action/upload-sarif@0ba4244466797eb048eb91a6cd43d5c03ca8bd05 # v2.21.2
with:
sarif_file: results.sarif