File tree Expand file tree Collapse file tree 7 files changed +31
-8
lines changed Expand file tree Collapse file tree 7 files changed +31
-8
lines changed Original file line number Diff line number Diff line change 11
11
- ' !dependabot/**'
12
12
workflow_dispatch :
13
13
14
+ permissions :
15
+ contents : read
16
+
14
17
jobs :
15
18
analyze :
16
19
name : Analyze
Original file line number Diff line number Diff line change @@ -3,10 +3,16 @@ name: Pull Request Labeler
3
3
on :
4
4
- pull_request_target
5
5
6
+ permissions :
7
+ contents : read
8
+
6
9
jobs :
7
10
triage :
11
+ permissions :
12
+ contents : read # for actions/labeler to determine modified files
13
+ pull-requests : write # for actions/labeler to add labels to PRs
8
14
runs-on : ubuntu-latest
9
15
steps :
10
- - uses : actions/labeler@v6
16
+ - uses : actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
11
17
with :
12
18
repo-token : ' ${{ secrets.GITHUB_TOKEN }}'
Original file line number Diff line number Diff line change 6
6
- published
7
7
workflow_dispatch :
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
jobs :
10
13
build :
11
14
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 30
30
persist-credentials : false
31
31
32
32
- name : Super-linter
33
- uses :
super-linter/super-linter/[email protected]
33
+ uses : super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0
34
34
env :
35
35
DEFAULT_BRANCH : main
36
36
FILTER_REGEX_EXCLUDE : ' /test/'
46
46
VALIDATE_CSS_PRETTIER : false
47
47
VALIDATE_EDITORCONFIG : false
48
48
VALIDATE_GIT_COMMITLINT : false
49
- VALIDATE_GITHUB_ACTIONS_ZIZMOR : false
50
49
VALIDATE_HTML : false
51
50
VALIDATE_HTML_PRETTIER : false
52
51
VALIDATE_JAVASCRIPT_ES : false
Original file line number Diff line number Diff line change 17
17
with :
18
18
persist-credentials : false
19
19
20
- - uses : micnncim/action-label-syncer@v1
20
+ - uses : micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
21
21
with :
22
22
token : ${{ secrets.GITHUB_TOKEN }}
23
23
repository : ${{ github.repository }}
Original file line number Diff line number Diff line change 9
9
- ' **/*.md'
10
10
- ' **/*.mdx'
11
11
12
+ permissions :
13
+ contents : read
14
+
12
15
jobs :
13
16
lint :
14
17
runs-on : ubuntu-latest
30
33
run : npm run lint
31
34
32
35
build :
36
+ permissions :
37
+ actions : write # for styfle/cancel-workflow-action to cancel/stop running workflows
38
+ contents : read # for actions/checkout to fetch code
33
39
runs-on : ${{ matrix.os }}
34
40
needs : lint
35
41
strategy :
43
49
44
50
steps :
45
51
- name : 🛑 Cancel Previous Runs
46
-
52
+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
47
53
with :
48
54
access_token : ${{ secrets.GITHUB_TOKEN }}
49
55
@@ -69,23 +75,23 @@ jobs:
69
75
70
76
- name : Run tests
71
77
if : matrix.os != 'ubuntu-latest'
72
- uses : nick-invision/retry@v3
78
+ uses : nick-invision/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
73
79
with :
74
80
timeout_minutes : 20
75
81
max_attempts : 3
76
82
command : npm run test
77
83
78
84
- name : Run coverage
79
85
if : matrix.node == '20' && matrix.os == 'ubuntu-latest'
80
- uses : nick-invision/retry@v3
86
+ uses : nick-invision/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
81
87
with :
82
88
timeout_minutes : 20
83
89
max_attempts : 3
84
90
command : npm run test:coverage
85
91
86
92
- name : ⬆️ Upload coverage to Codecov
87
93
if : matrix.node == '20' && matrix.os == 'ubuntu-latest'
88
- uses : codecov/codecov-action@v5
94
+ uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
89
95
with :
90
96
files : ./coverage/coverage-final.json
91
97
name : codecov-dev
Original file line number Diff line number Diff line change 13
13
- .github/workflows/website.yml
14
14
workflow_dispatch :
15
15
16
+ permissions :
17
+ contents : read
18
+
16
19
jobs :
17
20
build :
21
+ permissions :
22
+ contents : read # for actions/checkout to fetch code
23
+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
18
24
runs-on : ubuntu-latest
19
25
steps :
20
26
- name : ⬇️ Checkout
You can’t perform that action at this time.
0 commit comments