File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ # This file is synced from the `.github` repository, do not modify it directly.
1
2
extensions :
2
3
- addsTo :
3
4
pack : codeql/actions-all
Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
- master
9
+ paths :
10
+ - ' .github/workflows/*.ya?ml'
11
+ - ' Formula/a/actionlint.rb'
12
+ - ' Formula/s/shellcheck.rb'
13
+ - ' Formula/z/zizmor.rb'
9
14
pull_request :
15
+ paths :
16
+ - ' .github/workflows/*.ya?ml'
10
17
11
18
defaults :
12
19
run :
32
39
steps :
33
40
- name : Set up Homebrew
34
41
id : setup-homebrew
35
- uses : Homebrew/actions/setup-homebrew@master
42
+ uses : Homebrew/actions/setup-homebrew@main
36
43
with :
37
44
core : false
38
45
cask : false
56
63
path : results.sarif
57
64
58
65
- name : Set up actionlint
59
- run : echo "::add-matcher::$(brew --repository)/.github/actionlint-matcher.json"
66
+ run : |
67
+ # In homebrew-core, setting `shell: /bin/bash` prevents shellcheck from running on
68
+ # those steps, so let's change them to `shell: bash` temporarily for better linting.
69
+ sed -i 's|shell: /bin/bash -x|shell: bash -x|' .github/workflows/*.y*ml
70
+
71
+ # In homebrew-core, the JSON matcher needs to be accessible to the container host.
72
+ cp "$(brew --repository)/.github/actionlint-matcher.json" "$HOME"
73
+
74
+ echo "::add-matcher::$HOME/actionlint-matcher.json"
60
75
61
76
- run : actionlint
62
77
81
96
path : results.sarif
82
97
83
98
- name : Upload SARIF file
84
- uses : github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
99
+ uses : github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
85
100
with :
86
101
sarif_file : results.sarif
87
102
category : zizmor
Original file line number Diff line number Diff line change
1
+ # This file is synced from the `.github` repository, do not modify it directly.
1
2
rules :
2
3
unpinned-uses :
3
4
config :
You can’t perform that action at this time.
0 commit comments