-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic Sobelow action with sarif file output
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 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 |
---|---|---|
|
@@ -2,4 +2,8 @@ FROM elixir:1.11.2 | |
|
||
COPY sobelow.sh /sobelow.sh | ||
|
||
ENV DIR=GITHUB_WORKSPACE | ||
|
||
WORKDIR ${DIR} | ||
|
||
ENTRYPOINT ["/sobelow.sh"] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Sobelow Action | ||
|
||
... | ||
|
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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/sh -l | ||
|
||
mix local.hex --force | ||
mix escript.install github nccgroup/sobelow --force | ||
mix escript.install hex sobelow --force | ||
|
||
~/.mix/escripts/sobelow $1 | ||
if [ "$2" = "false" ]; then | ||
~/.mix/escripts/sobelow $1 | ||
else | ||
~/.mix/escripts/sobelow $1 --format sarif >> results.sarif | ||
fi |