Merge pull request #481 from uselagoon/ansible-shell #38
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: | |
push: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
ossf-scorecard-analysis: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
# Needed if using Code scanning alerts | |
security-events: write | |
# Needed for GitHub OIDC token if publish_results is true | |
id-token: write | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Run analysis | |
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
# Publish the results for public repositories to enable scorecard badges. For more details, see | |
# https://github.com/ossf/scorecard-action#publishing-results. | |
# For private repositories, `publish_results` will automatically be set to `false`, regardless | |
# of the value entered here. | |
publish_results: true | |
- name: Upload SARIF results to code scanning | |
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10 | |
with: | |
sarif_file: results.sarif |