Migrate reporter to new plugin API #975
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: Scorecard Analysis | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
scorecard-analysis: | |
runs-on: ubuntu-latest | |
permissions: | |
# Needed for SARIF scanning upload. | |
security-events: write | |
# Needed for GitHub OIDC token if `publish_results` is true. | |
id-token: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
persist-credentials: false | |
- name: Run Analysis | |
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | |
with: | |
results_file: ossf-results.sarif | |
results_format: sarif | |
publish_results: true | |
- name: Upload Code Scanning Results | |
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3 | |
with: | |
sarif_file: ossf-results.sarif |