File tree Expand file tree Collapse file tree 7 files changed +76
-18
lines changed
Expand file tree Collapse file tree 7 files changed +76
-18
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ jobs:
1414 node-version : [18.x]
1515
1616 steps :
17- - uses : actions/checkout@v4
17+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818 with :
1919 ref : main
20+ persist-credentials : false
2021
2122 - name : build
22- uses : actions/setup-node@v4
23+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2324 with :
2425 node-version : ${{ matrix.node-version }}
2526 - run : npm install
Original file line number Diff line number Diff line change @@ -16,22 +16,23 @@ jobs:
1616 actions : read
1717 contents : read
1818 security-events : write
19-
2019 strategy :
2120 fail-fast : false
2221
2322 steps :
2423 - name : Checkout repository
25- uses : actions/checkout@v4
24+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+ with :
26+ persist-credentials : false
2627
2728 - name : Initialize CodeQL
28- uses : github/codeql-action/init@v3
29+ uses : github/codeql-action/init@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
2930 with :
3031 languages : " javascript"
3132 queries : +security-and-quality
3233
3334 - name : Autobuild
34- uses : github/codeql-action/autobuild@v3
35+ uses : github/codeql-action/autobuild@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
3536
3637 - name : Perform CodeQL Analysis
37- uses : github/codeql-action/analyze@v3
38+ uses : github/codeql-action/analyze@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : " Checkout Repository"
12- uses : actions/checkout@v4
12+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
13+ with :
14+ persist-credentials : false
1315
1416 - name : " Dependency Review"
15- uses : actions/dependency-review-action@v4
17+ uses : actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7
Original file line number Diff line number Diff line change 88 build :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
12- - uses : actions/setup-node@v4
11+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
12+ with :
13+ persist-credentials : false
14+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1315 with :
1416 node-version : 18
1517 - run : npm ci
1820 needs : build
1921 runs-on : ubuntu-latest
2022 steps :
21- - uses : actions/checkout@v4
22- - uses : actions/setup-node@v4
23+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+ with :
25+ persist-credentials : false
26+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2327 with :
2428 node-version : 18
2529 registry-url : https://registry.npmjs.org/
Original file line number Diff line number Diff line change 1+ name : Scorecard supply-chain security
2+ on :
3+ branch_protection_rule :
4+ schedule :
5+ - cron : " 27 12 * * 2"
6+ push :
7+ branches : ["main"]
8+
9+ permissions : read-all
10+
11+ jobs :
12+ analysis :
13+ name : Scorecard analysis
14+ runs-on : ubuntu-latest
15+ if : github.event.repository.default_branch == github.ref_name
16+ permissions :
17+ security-events : write
18+ id-token : write
19+
20+ steps :
21+ - name : " Checkout code"
22+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+ with :
24+ persist-credentials : false
25+
26+ - name : " Run analysis"
27+ uses : ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
28+ with :
29+ results_file : results.sarif
30+ results_format : sarif
31+ publish_results : true
32+
33+ - name : " Upload artifact"
34+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
35+ with :
36+ name : SARIF file
37+ path : results.sarif
38+ retention-days : 5
39+
40+ - name : " Upload to code-scanning"
41+ uses : github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
42+ with :
43+ sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -15,18 +15,25 @@ jobs:
1515
1616 steps :
1717 - name : Checkout Code
18- uses : actions/checkout@v4
18+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919 with :
2020 fetch-depth : 0
21+ persist-credentials : false
2122
2223 - name : Lint Code Base
23- uses : super-linter/super-linter/slim@v7
24+ uses : super-linter/super-linter/slim@2bdd90ed3262e023ac84bf8fe35dc480721fc1f2 # v8.2.1
2425 env :
2526 DEFAULT_BRANCH : main
2627 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ LOG_LEVEL : NOTICE
29+ SUPPRESS_POSSUM : true
2730 VALIDATE_ALL_CODEBASE : false
28- VALIDATE_CSS : false
31+ VALIDATE_BIOME_FORMAT : false
32+ VALIDATE_BIOME_LINT : false
2933 VALIDATE_CHECKOV : false
34+ VALIDATE_CSS : false
3035 VALIDATE_EDITORCONFIG : false
36+ VALIDATE_GIT_COMMITLINT : false
37+ VALIDATE_GITHUB_ACTIONS_ZIZMOR : false
3138 VALIDATE_JSCPD : false
3239 VALIDATE_MARKDOWN : false
Original file line number Diff line number Diff line change 2323 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2424 restore-keys : |
2525 ${{ runner.os }}-node-
26- - uses : actions/checkout@v4
26+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2727 - name : Run tests ${{ matrix.node-version }}
28- uses : actions/setup-node@v4
28+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2929 with :
3030 node-version : ${{ matrix.node-version }}
3131 - run : npm ci
You can’t perform that action at this time.
0 commit comments