-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to new multiline syntax and recent action changes
- Loading branch information
Showing
2 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,10 +328,10 @@ jobs: | |
ignore-compile: true | ||
``` | ||
|
||
## Example workflow: markdown report | ||
## Example workflow: Markdown report | ||
|
||
The following GitHub Actions workflow example will create/update pull requests | ||
with the contents of Slither's markdown report. Useful for when [GitHub Advanced | ||
with the contents of Slither's Markdown report. Useful for when [GitHub Advanced | ||
Security](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security) | ||
(required for the SARIF feature) is unavailable. | ||
|
||
|
@@ -346,23 +346,20 @@ on: | |
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Run Slither | ||
uses: crytic/slither-action@main | ||
continue-on-error: true | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
node-version: 16 | ||
fail-on: none | ||
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/ | ||
- name: Create/update checklist as PR comment | ||
uses: actions/github-script@v5.1.0 | ||
uses: actions/github-script@v6 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
script: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters