mirror of
https://github.com/ivuorinen/go-test-sarif.git
synced 2026-02-15 02:50:07 +00:00
fix(ci): tweak workflows
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -19,12 +19,14 @@ jobs:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: Run Go Tests
|
||||
shell: bash
|
||||
run: go test -json ./... > go-test-results.json
|
||||
|
||||
- name: Convert JSON to SARIF
|
||||
uses: ivuorinen/go-test-sarif@v1
|
||||
with:
|
||||
test_results: go-test-results.json
|
||||
input_file: go-test-results.json
|
||||
output_file: go-test-results.sarif
|
||||
|
||||
- name: Upload SARIF to GitHub Security Tab
|
||||
uses: github/codeql-action/upload-sarif@5f8171a638ada777af81d42b55959a643bb29017 # v3
|
||||
|
||||
Reference in New Issue
Block a user