24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- uses : actions/checkout@v3
27
- - uses : crytic/slither-action@v0.1.1
27
+ - uses : crytic/slither-action@v0.2.0
28
28
` ` `
29
29
30
30
### Options
@@ -63,9 +63,16 @@ config` to prevent the action from overriding your settings.
63
63
| `low` | Fail on any finding | Fail on any finding >= low
64
64
| `medium` | Fail on any finding | Fail on any finding >= medium
65
65
| `high` | Fail on any finding | Fail on any finding >= high
66
- | `none` | Do not fail on findings | Do not fail on findings
66
+ | `none` | Do not fail on findings † | Do not fail on findings
67
67
| `config` | Determined by config file | Determined by config file
68
68
69
+ † Note that if you use `fail-on : none` with Slither 0.8.3 or earlier, certain
70
+ functionality may not work as expected. In particular, Slither will not produce
71
+ a SARIF file in this case. If you require `fail-on : none` behavior with the
72
+ SARIF integration, consider adding [`continue-on-error :
73
+ true`](https://docs.github.com/es/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error)
74
+ instead to the action step.
75
+
69
76
# ## Using a different Slither version
70
77
71
78
If the latest Slither release has a bug that does not let you analyze your
@@ -86,6 +93,22 @@ custom Slither release. This option can take different values:
86
93
Add `// slither-disable-next-line DETECTOR_NAME` before the finding, or use the
87
94
[Github Code Scanning integration](#github-code-scanning-integration).
88
95
96
+ # ## Staying up to date
97
+
98
+ We suggest enabling [Dependabot version updates for
99
+ actions](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot)
100
+ to get notified of new action releases. You can do so by creating
101
+ `.github/dependabot.yml` in your repository with the following content :
102
+
103
+ ` ` ` yaml
104
+ version: 2
105
+ updates:
106
+ - package-ecosystem: "github-actions"
107
+ directory: "/"
108
+ schedule:
109
+ interval: "daily"
110
+ ` ` `
111
+
89
112
# # Github Code Scanning integration
90
113
91
114
The action supports the Github Code Scanning integration, which will push
@@ -116,7 +139,7 @@ jobs:
116
139
- uses: actions/checkout@v3
117
140
118
141
- name: Run Slither
119
- uses: crytic/slither-action@v0.1.1
142
+ uses: crytic/slither-action@v0.2.0
120
143
id: slither
121
144
with:
122
145
sarif: results.sarif
@@ -151,7 +174,7 @@ jobs:
151
174
runs-on: ubuntu-latest
152
175
steps:
153
176
- uses: actions/checkout@v3
154
- - uses: crytic/slither-action@v0.1.1
177
+ - uses: crytic/slither-action@v0.2.0
155
178
with:
156
179
target: 'src/'
157
180
` ` `
@@ -188,7 +211,7 @@ jobs:
188
211
uses: actions/checkout@v3
189
212
190
213
- name: Run Slither
191
- uses: crytic/slither-action@v0.1.1
214
+ uses: crytic/slither-action@v0.2.0
192
215
id: slither
193
216
with:
194
217
node-version: 16
@@ -233,7 +256,7 @@ jobs:
233
256
uses: actions/checkout@v3
234
257
235
258
- name: Run Slither
236
- uses: crytic/slither-action@v0.1.1
259
+ uses: crytic/slither-action@v0.2.0
237
260
id: slither
238
261
with:
239
262
sarif: results.sarif
@@ -300,7 +323,7 @@ jobs:
300
323
run: nix-shell --run 'make build'
301
324
302
325
- name: Run Slither
303
- uses: crytic/slither-action@v0.1.1
326
+ uses: crytic/slither-action@v0.2.0
304
327
with:
305
328
ignore-compile: true
306
329
` ` `
0 commit comments