Skip to content

Commit

Permalink
Add gokart job in CI (#2161)
Browse files Browse the repository at this point in the history
* Add gokart job in CI

Signed-off-by: noor <noormuhammadmalik95@gmail.com>

* Upload scan results to security tab

Signed-off-by: noor <noormuhammadmalik95@gmail.com>

Signed-off-by: noor <noormuhammadmalik95@gmail.com>
  • Loading branch information
demonCoder95 authored Nov 30, 2022
1 parent 2301c16 commit 8f042db
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ on: [ pull_request ]
permissions:
contents: read
jobs:
gokart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
# https://www.npmjs.com/package/semver#caret-ranges-123-025-004
go-version: '^1.19'
- run: go install github.com/praetorian-inc/gokart@latest
- run: gokart scan -s -o gokart-scan-output.sarif
# Upload the results to the code scanning security tab
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: gokart-scan-output.sarif
semgrep:
runs-on: ubuntu-latest
container:
Expand Down

0 comments on commit 8f042db

Please sign in to comment.