@@ -26,43 +26,34 @@ jobs:
2626 security-events : write
2727
2828 steps :
29- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30- with :
31- persist-credentials : false
32-
33- - uses : ./
29+ - uses : $/
3430 with :
3531 advanced-security : true
32+ inputs : ${{ github.repository }}
3633
3734 selftest-version :
3835 name : " TEST: specific version of zizmor"
3936 runs-on : ubuntu-latest
4037 permissions :
4138 security-events : write
4239 steps :
43- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
44- with :
45- persist-credentials : false
46-
47- - uses : ./
40+ - uses : $/
4841 with :
4942 advanced-security : true
50- version : " 1.6.0"
43+ version : " 1.29.0"
44+ inputs : ${{ github.repository }}
5145
5246 selftest-version-nonexistent-xfail :
5347 name : " TEST: nonexistent version of zizmor (expected to fail)"
5448 runs-on : ubuntu-latest
5549 steps :
56- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
57- with :
58- persist-credentials : false
59-
60- - uses : ./
50+ - uses : $/
6151 id : zizmor
6252 continue-on-error : true
6353 with :
6454 advanced-security : true
6555 version : " 9999.0.0"
56+ inputs : ${{ github.repository }}
6657
6758 - name : assert failure
6859 env :
@@ -77,23 +68,16 @@ jobs:
7768 name : " TEST: emits plan format when 'advanced-security: false'"
7869 runs-on : ubuntu-latest
7970 steps :
80- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
81- with :
82- persist-credentials : false
83-
84- - uses : ./
71+ - uses : $/
8572 with :
8673 advanced-security : false
74+ inputs : ${{ github.repository }}
8775
8876 selftest-plain-gha-hazmat-xfail :
8977 name : " TEST: known findings in woodruffw/gha-hazmat (expected to fail when 'advanced-security: false')"
9078 runs-on : ubuntu-latest
9179 steps :
92- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
93- with :
94- persist-credentials : false
95-
96- - uses : ./
80+ - uses : $/
9781 id : zizmor
9882 continue-on-error : true
9983 with :
@@ -113,11 +97,7 @@ jobs:
11397 name : " TEST: known findings in woodruffw/gha-hazmat with offline audits (expected to fail when 'advanced-security: false')"
11498 runs-on : ubuntu-latest
11599 steps :
116- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
117- with :
118- persist-credentials : false
119-
120- - uses : ./
100+ - uses : $/
121101 id : zizmor
122102 continue-on-error : true
123103 with :
@@ -138,29 +118,23 @@ jobs:
138118 name : " TEST: 'annotations: true' emits GitHub annotations"
139119 runs-on : ubuntu-latest
140120 steps :
141- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
142- with :
143- persist-credentials : false
144-
145- - uses : ./
121+ - uses : $/
146122 with :
147123 advanced-security : false
148124 annotations : true
125+ inputs : ${{ github.repository }}
149126
150127 selftest-annotations-advanced-security-exclusive-xfail :
151128 name : " TEST: 'annotations: true' and 'advanced-security: true' are mutually exclusive"
152129 runs-on : ubuntu-latest
153130 steps :
154- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
155- with :
156- persist-credentials : false
157-
158- - uses : ./
131+ - uses : $/
159132 id : zizmor
160133 continue-on-error : true
161134 with :
162135 advanced-security : true
163136 annotations : true
137+ inputs : ${{ github.repository }}
164138
165139 - name : assert failure
166140 env :
@@ -175,11 +149,7 @@ jobs:
175149 name : " TEST: 'fail-on-no-inputs: true' causes failure when no inputs are collected"
176150 runs-on : ubuntu-latest
177151 steps :
178- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
179- with :
180- persist-credentials : false
181-
182- - uses : ./
152+ - uses : $/
183153 id : zizmor
184154 continue-on-error : true
185155 with :
@@ -199,11 +169,7 @@ jobs:
199169 name : " TEST: 'fail-on-no-inputs: false' does not cause failure when no inputs are collected"
200170 runs-on : ubuntu-latest
201171 steps :
202- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
203- with :
204- persist-credentials : false
205-
206- - uses : ./
172+ - uses : $/
207173 id : zizmor
208174 continue-on-error : true
209175 with :
@@ -218,14 +184,11 @@ jobs:
218184 security-events : write
219185
220186 steps :
221- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
222- with :
223- persist-credentials : false
224-
225- - uses : ./
187+ - uses : $/
226188 id : zizmor
227189 with :
228190 advanced-security : true
191+ inputs : ${{ github.repository }}
229192
230193 - name : Test output-file
231194 run : |
@@ -239,15 +202,12 @@ jobs:
239202 permissions : {}
240203
241204 steps :
242- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
243- with :
244- persist-credentials : false
245-
246- - uses : ./
205+ - uses : $/
247206 id : zizmor
248207 with :
249208 advanced-security : false
250209 collect : actions
210+ inputs : ${{ github.repository }}
251211
252212 # TODO: Would be nice to grep the input or similar here to confirm we only collected `./action.yml`.
253213
0 commit comments