44
55name : Scorecard supply-chain security
66on :
7- # For Branch-Protection check. Only the default branch is supported. See
8- # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
97 branch_protection_rule :
10- # To guarantee Maintained check is occasionally updated. See
11- # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
128 schedule :
139 - cron : ' 32 4 * * 5'
1410 push :
1511 branches : [ "main" ]
1612
17- # Declare default permissions as read only.
1813permissions : read-all
1914
2015jobs :
2116 analysis :
2217 name : Scorecard analysis
2318 runs-on : ubuntu-latest
2419 permissions :
25- # Needed to upload the results to code-scanning dashboard.
2620 security-events : write
27- # Needed to publish results and get a badge (see publish_results below).
2821 id-token : write
29- # Uncomment the permissions below if installing in a private repository.
30- # contents: read
31- # actions: readhttps://github.com/hdamecharla/sap-automation-kimforss/tree/main
3222
3323 steps :
3424 - name : Harden Runner
@@ -46,30 +36,15 @@ jobs:
4636 with :
4737 results_file : results.sarif
4838 results_format : sarif
49- # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
50- # - you want to enable the Branch-Protection check on a *public* repository, or
51- # - you are installing Scorecard on a *private* repository
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.
6139 publish_results : true
6240
63- # format to the repository Actions tab.
6441 - name : " Upload artifact"
6542 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6643 with :
6744 name : SARIF file
6845 path : results.sarif
6946 retention-days : 5
7047
71- # Upload the results to GitHub's code scanning dashboard (optional).
72- # Commenting out will disable upload of results to your repo's Code Scanning dashboard
7348 - name : " Upload to code-scanning"
7449 uses : github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
7550 with :
0 commit comments