Skip to content

Commit

Permalink
👽 Added support for the new JSON Format (#34)
Browse files Browse the repository at this point in the history
* 🙈 Added raw report to ignore

* 📝 Moved warning to latest usage location

* 👽 Adjusted coding to work with new JSON Stream format

* 🧑‍💻 Added Github Actions Extension

* ✅ Running Integration Tests for PRs

* 🔧 Updated the default version to latest

* ♻️ Refactored local execution

Instead of a separate class now an function is leveraged.

* 🍱 Replaced static data with new format

* 💚 Using path.join for access of static data

* 🐛 Fixed Path issue for Local vs Testing
  • Loading branch information
Templum authored Apr 11, 2023
1 parent 5140ea8 commit a5f05f9
Show file tree
Hide file tree
Showing 12 changed files with 937 additions and 896 deletions.
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

0 comments on commit a5f05f9

Please sign in to comment.