File tree 2 files changed +23
-8
lines changed
2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 93
93
needs : ['build']
94
94
container : ghcr.io/datadog/images-rb/engines/ruby:3.3
95
95
steps :
96
- - name : Checkout
97
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
96
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
98
97
with :
99
98
persist-credentials : false
100
99
- name : Restore bundle cache
@@ -144,11 +143,8 @@ jobs:
144
143
zizmor :
145
144
name : zizmor
146
145
runs-on : ubuntu-24.04
147
- permissions :
148
- security-events : write
149
146
steps :
150
- - name : Checkout repository
151
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
147
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
152
148
with :
153
149
persist-credentials : false
154
150
- name : Run zizmor 🌈
@@ -165,7 +161,8 @@ jobs:
165
161
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
166
162
with :
167
163
persist-credentials : false
168
- - uses : docker://rhysd/actionlint:1.7.7
164
+ - name : Run actionlint
165
+ uses : docker://rhysd/actionlint:1.7.7
169
166
with :
170
167
args : -color
171
168
@@ -177,7 +174,8 @@ jobs:
177
174
with :
178
175
persist-credentials : false
179
176
- run : pip install yamllint
180
- - run : yamllint --strict .
177
+ - name : Run yamllint
178
+ run : yamllint --strict .
181
179
182
180
complete :
183
181
name : Static Analysis (complete)
Original file line number Diff line number Diff line change @@ -306,6 +306,23 @@ To change your code to the version that standard wants, run:
306
306
$ bundle exec rake standard:fix
307
307
```
308
308
309
+ For non-Ruby code, follow the instructions below to debug locally, if CI failed with respective linter.
310
+
311
+ - For ` yamllint ` , run:
312
+ ``` bash
313
+ docker run --rm -v $( pwd) :/app -w /app cytopia/yamllint .
314
+ ```
315
+
316
+ - For ` actionlint ` , run:
317
+ ``` bash
318
+ docker run --rm -v $( pwd) :/app -w /app rhysd/actionlint -color
319
+ ```
320
+
321
+ - For ` zizmor ` , run:
322
+ ``` bash
323
+ docker run --rm -v $( pwd) :/app -w /app -e GH_TOKEN=$( gh auth token) ghcr.io/woodruffw/zizmor --min-severity low .
324
+ ```
325
+
309
326
## Appendix
310
327
311
328
### Writing new integrations
You can’t perform that action at this time.
0 commit comments