Merge pull request #1583 from laurentsimon/feat/v1.1.0

 Scorecard v1.1.0 hash bump
This commit is contained in:
Sampark Sharma
2022-05-30 11:01:51 +05:30
committed by GitHub
+17 -11
View File
@@ -17,9 +17,11 @@ jobs:
permissions: permissions:
# Needed to upload the results to code-scanning dashboard. # Needed to upload the results to code-scanning dashboard.
security-events: write security-events: write
# Used to receive a badge. (Upcoming feature)
id-token: write
actions: read actions: read
contents: read contents: read
steps: steps:
- name: "Checkout code" - name: "Checkout code"
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
@@ -27,27 +29,31 @@ jobs:
persist-credentials: false persist-credentials: false
- name: "Run analysis" - name: "Run analysis"
uses: ossf/scorecard-action@c1aec4ac820532bab364f02a81873c555a0ba3a1 # v1.0.4 uses: ossf/scorecard-action@5c8bc69dc88b65c66584e07611df79d3579b0377 # v1.1.0
with: with:
results_file: results.sarif results_file: results.sarif
results_format: sarif results_format: sarif
# Read-only PAT token. To create it, # (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation. # - you want to enable the Branch-Protection check on a *public* repository, or
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }} # - you are installing Scorecards on a *private* repository
# Publish the results to enable scorecard badges. For more details, see # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# https://github.com/ossf/scorecard-action#publishing-results. # repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# For private repositories, `publish_results` will automatically be set to `false`,
# regardless of the value entered here. # 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 publish_results: true
# Upload the results as artifacts (optional). # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0 uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
with: with:
name: SARIF file name: SARIF file
path: results.sarif path: results.sarif
retention-days: 5 retention-days: 5
# Upload the results to GitHub's code scanning dashboard. # Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning" - name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26 uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26