mirror of
https://github.com/ivuorinen/go-test-sarif.git
synced 2026-02-05 14:45:54 +00:00
feat: change repo name
This commit is contained in:
12
.github/README.md
vendored
12
.github/README.md
vendored
@@ -1,4 +1,4 @@
|
||||
# go-test-sarif
|
||||
# go-test-sarif and go-test-sarif-action
|
||||
|
||||
`go-test-sarif` is a CLI tool and GitHub Action for converting `go test -json` output into SARIF format,
|
||||
making it compatible with GitHub Security Tab and other SARIF consumers.
|
||||
@@ -15,13 +15,13 @@ making it compatible with GitHub Security Tab and other SARIF consumers.
|
||||
### Using `go install`
|
||||
|
||||
```sh
|
||||
go install github.com/ivuorinen/go-test-sarif@latest
|
||||
go install github.com/ivuorinen/go-test-sarif-action@latest
|
||||
```
|
||||
|
||||
### Using Docker
|
||||
|
||||
```sh
|
||||
docker pull ghcr.io/ivuorinen/go-test-sarif:latest
|
||||
docker pull ghcr.io/ivuorinen/go-test-sarif-action:latest
|
||||
```
|
||||
|
||||
## 🛠️ Usage
|
||||
@@ -36,7 +36,7 @@ go-test-sarif go-test-results.json go-test-results.sarif
|
||||
### Docker Usage
|
||||
|
||||
```sh
|
||||
docker run --rm -v $(pwd):/workspace ghcr.io/ivuorinen/go-test-sarif go-test-results.json go-test-results.sarif
|
||||
docker run --rm -v $(pwd):/workspace ghcr.io/ivuorinen/go-test-sarif-action go-test-results.json go-test-results.sarif
|
||||
```
|
||||
|
||||
### GitHub Action Usage
|
||||
@@ -45,7 +45,7 @@ Add the following step to your GitHub Actions workflow:
|
||||
|
||||
```yaml
|
||||
- name: Convert JSON to SARIF
|
||||
uses: ivuorinen/go-test-sarif@v1
|
||||
uses: ivuorinen/go-test-sarif-action@v1
|
||||
with:
|
||||
test_results: go-test-results.json
|
||||
```
|
||||
@@ -101,7 +101,7 @@ SARIF report example:
|
||||
|
||||
Clone the repository and build the project:
|
||||
```sh
|
||||
git clone https://github.com/ivuorinen/go-test-sarif.git
|
||||
git clone https://github.com/ivuorinen/go-test-sarif-action.git
|
||||
cd go-test-sarif
|
||||
go build -o go-test-sarif ./cmd/main.go
|
||||
```
|
||||
|
||||
@@ -6,6 +6,8 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
run: go test -json ./... > go-test-results.json
|
||||
|
||||
- name: Convert JSON to SARIF
|
||||
uses: ivuorinen/go-test-sarif@58ffaaacdb178a5d053f8e8c2693966422a3ecda # v1
|
||||
uses: ivuorinen/go-test-sarif-action@58ffaaacdb178a5d053f8e8c2693966422a3ecda # v1
|
||||
with:
|
||||
input_file: go-test-results.json
|
||||
output_file: go-test-results.sarif
|
||||
|
||||
Reference in New Issue
Block a user