22#
33# SPDX-License-Identifier: Apache-2.0
44
5- # This workflow uses actions that are not certified by GitHub. They are provided
6- # by a third-party and are governed by separate terms of service, privacy
7- # policy, and support documentation.
8-
95name : Scorecard supply-chain security
106on :
11- # For Branch-Protection check. Only the default branch is supported. See
12- # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
137 branch_protection_rule :
14- # To guarantee Maintained check is occasionally updated. See
15- # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
168 schedule :
179 - cron : ' 24 10 * * 6'
1810 push :
1911 branches : [ "main" ]
2012
21- # Declare default permissions as read only.
2213permissions : read-all
2314
2415jobs :
@@ -30,38 +21,19 @@ jobs:
3021 security-events : write
3122 # Needed to publish results and get a badge (see publish_results below).
3223 id-token : write
33- # Uncomment the permissions below if installing in a private repository.
34- # contents: read
35- # actions: read
36-
3724 steps :
3825 - name : " Checkout code"
3926 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v3.1.0
4027 with :
4128 persist-credentials : false
4229
4330 - name : " Run analysis"
44- uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
31+ uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a
4532 with :
4633 results_file : results.sarif
4734 results_format : sarif
48- # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
49- # - you want to enable the Branch-Protection check on a *public* repository, or
50- # - you are installing Scorecard on a *private* repository
51- # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
52- # repo_token: ${{ secrets.SCORECARD_TOKEN }}
53-
54- # Public repositories:
55- # - Publish results to OpenSSF REST API for easy access by consumers
56- # - Allows the repository to include the Scorecard badge.
57- # - See https://github.com/ossf/scorecard-action#publishing-results.
58- # For private repositories:
59- # - `publish_results` will always be set to `false`, regardless
60- # of the value entered here.
6135 publish_results : true
6236
63- # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
64- # format to the repository Actions tab.
6537 - name : " Upload artifact"
6638 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
6739 with :
7143
7244 # Upload the results to GitHub's code scanning dashboard.
7345 - name : " Upload to code-scanning"
74- uses : github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v3.29.5
46+ uses : github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
7547 with :
7648 sarif_file : results.sarif
0 commit comments