Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
run: |
mkdir ../action
mv * ../action
mv ../action/sample-repo/* .
rsync --archive ../action/sample-repo/ .
- name: Compile test project
run: |
mvn --quiet clean compile
dotnet build --verbosity quiet .
- name: Run action
id: run-action
uses: ./../action
Expand All @@ -57,13 +61,12 @@ jobs:
working-directory: artifact
run: |
if [ -f scanning-report.sarif ]; then
export expectedScaResults=9
export SCA_RESULTS=`jq '.runs | map (.results | length) | add' scanning-report.sarif`
echo "Got $SCA_RESULTS from SCA"
if [ "$SCA_RESULTS" -eq 0 ]; then
if [ "$SCA_RESULTS" -eq $expectedScaResults ]; then
echo "Found expected number of SCA results: $SCA_RESULTS"
else
echo "::error::Expected to have $expectedScaResults SCA results!"
exit 1
fi
else
echo "::error::SCA results not found!"
exit 1
fi
5 changes: 5 additions & 0 deletions sample-repo/.lacework/codesec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
default:
sca:
enabled: true
scan:
taintAnalysis: true
2 changes: 1 addition & 1 deletion sample-repo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class PulseTaintTests
{
[HttpPost]
static void httpPostSourceToSqlSink(string inputParameter)
static void HttpPostSourceToSqlSink(string inputParameter)
{
using var _ = new SqlCommand(inputParameter);
}
Expand Down
Loading