Skip to content

Commit

Permalink
Merge pull request #9589 from dependabot/jamiemagee/scorecards-action
Browse files Browse the repository at this point in the history
Add scorecards analysis
  • Loading branch information
raj-meka committed Apr 26, 2024
2 parents 2e88d33 + 507d5e0 commit e160e8d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/scorecards.yaml
@@ -0,0 +1,35 @@
name: Scorecard analysis

on: # yamllint disable-line rule:truthy
push:
branches:
- main
schedule:
- cron: "30 1 * * 6" # https://crontab.guru/#30_1_*_*_6

permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed for Code scanning upload
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write

steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
persist-credentials: false

- uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
publish_results: true

- uses: github/codeql-action/upload-sarif@8f596b4ae3cb3c588a5c46780b86dd53fef16c52 # v3.25.2
with:
sarif_file: results.sarif

0 comments on commit e160e8d

Please sign in to comment.