Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👽 Added support for the new JSON Format #34

Merged
merged 10 commits into from
Apr 11, 2023
13 changes: 7 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@
}
},
"extensions": [
"golang.Go",
"streetsidesoftware.code-spell-checker",
"premparihar.gotestexplorer",
"wayou.vscode-todo-highlight",
"bierner.github-markdown-preview"
]
"golang.Go",
"streetsidesoftware.code-spell-checker",
"premparihar.gotestexplorer",
"wayou.vscode-todo-highlight",
"bierner.github-markdown-preview",
"GitHub.vscode-github-actions"
]
}
},
// Set *default* container specific settings.json values on container create.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Integration Test
on:
pull_request:
branches-ignore:
- dependabot/github_actions/*
- dependabot/docker/*
push:
branches:
- main
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@

# Used for testing locally
.env
hack/output.json

raw-report.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Please be aware there will be no direct output to the console, all found vulnera
This configuration uses a different version of go (1.18) scans ./... and will fail if at least one vulnerability was found.
</summary>

> :warning: Choosing `vulncheck-version: latest` can include breaking changes to the JSON format, which will break this action.
```yaml
name: My Workflow
on: [push, pull_request]
Expand Down Expand Up @@ -166,6 +168,4 @@ jobs:

> :warning: Please be aware that go-version should be a valid tag name for the [golang dockerhub image](https://hub.docker.com/_/golang/tags).

> :warning: New versions of govulncheck might introduce new report formats, breaking this action. Hence the default version is always the last known working version.

> :lock: Please be aware if the token is not specified it uses `github.token` for more details on that check [those docs](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ inputs:
required: false
default: "1.19"
vulncheck-version:
description: "Version of govulncheck that should be used, by default v0.0.0-20230320232729-bfc1eaef17a4"
description: "Version of govulncheck that should be used, by default v0.0.0-20230331150530-a42f9910daf3"
required: false
default: "v0.0.0-20230320232729-bfc1eaef17a4"
default: "v0.0.0-20230331150530-a42f9910daf3"
github-token:
description: "Github App token to upload sarif report. Needs write permissions for security_events. By default it will use 'github.token' value"
default: ${{ github.token }}
Expand Down
Loading