File tree Expand file tree Collapse file tree 9 files changed +59
-15
lines changed Expand file tree Collapse file tree 9 files changed +59
-15
lines changed Original file line number Diff line number Diff line change 61
61
" npmjs" ,
62
62
" onttt" ,
63
63
" opencollective" ,
64
+ " ossf" ,
64
65
" Rehype" ,
65
66
" Rollup" ,
66
67
" ruleid" ,
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ jobs:
22
22
23
23
steps :
24
24
- name : Checkout repository
25
- uses : actions/checkout@v5
25
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
26
with :
27
27
persist-credentials : false
28
28
29
29
- name : Initialize CodeQL
30
- uses : github/codeql-action/init@v3
30
+ uses : github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
31
31
with :
32
32
config-file : ./.github/codeql/codeql-config.yml
33
33
languages : ' javascript'
34
34
queries : +security-and-quality
35
35
36
36
- name : Perform CodeQL Analysis
37
- uses : github/codeql-action/analyze@v3
37
+ uses : github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
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 || github.event_name == 'pull_request'
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 @@ -11,12 +11,12 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : ⬇️ Checkout
14
- uses : actions/checkout@v5
14
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15
15
with :
16
16
persist-credentials : false
17
17
18
18
- name : ⎔ Setup node
19
- uses : actions/setup-node@v5
19
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
20
20
with :
21
21
registry-url : ' https://registry.npmjs.org'
22
22
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
if : ${{ github.actor != 'dependabot[bot]' }}
15
15
steps :
16
- - uses : actions/checkout@v5
16
+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17
17
with :
18
18
persist-credentials : false
19
19
20
- - uses : streetsidesoftware/cspell-action@v7
20
+ - uses : streetsidesoftware/cspell-action@157048954070986ce4315d0813573a2d8faee361 # v7.1.1
21
21
with :
22
22
check_dot_files : false
23
23
incremental_files_only : true
Original file line number Diff line number Diff line change 24
24
25
25
steps :
26
26
- name : Checkout Code
27
- uses : actions/checkout@v5
27
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28
28
with :
29
29
fetch-depth : 0
30
30
persist-credentials : false
Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
15
15
steps :
16
- - uses : actions/checkout@v5
16
+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17
17
with :
18
18
persist-credentials : false
19
19
Original file line number Diff line number Diff line change 19
19
persist-credentials : false
20
20
21
21
- name : ⎔ Setup node
22
- uses : actions/setup-node@v5
22
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
23
23
with :
24
24
cache : npm
25
25
@@ -48,12 +48,12 @@ jobs:
48
48
access_token : ${{ secrets.GITHUB_TOKEN }}
49
49
50
50
- name : ⬇️ Checkout
51
- uses : actions/checkout@v5
51
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
52
52
with :
53
53
persist-credentials : false
54
54
55
55
- name : ⎔ Setup node ${{ matrix.node }}
56
- uses : actions/setup-node@v5
56
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
57
57
with :
58
58
node-version : ${{ matrix.node }}
59
59
cache : npm
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : ⬇️ Checkout
21
- uses : actions/checkout@v5
21
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22
22
with :
23
23
persist-credentials : false
24
24
25
25
- name : ⎔ Setup node
26
- uses : actions/setup-node@v5
26
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
27
27
with :
28
28
cache : npm
29
29
cache-dependency-path : website/package-lock.json
45
45
# Continue even if HTMLHint finds issues
46
46
47
47
- name : Upload SARIF file
48
- uses : github/codeql-action/upload-sarif@v3
48
+ uses : github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
49
49
with :
50
50
sarif_file : website/htmlhint.sarif
51
51
category : HTMLHint
You can’t perform that action at this time.
0 commit comments