Skip to content

Commit

Permalink
Add govulncheck GitHub action (#1145)
Browse files Browse the repository at this point in the history
* Add govulncheck GitHub action

* Pin golang/govulncheck-action by hash

* Add top level read-only permission in govulncheck.yml
  • Loading branch information
roger2hk committed Sep 11, 2023
1 parent 9b8bd91 commit cc3621e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: govulncheck

on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read

jobs:
govulncheck_job:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@7da72f730e37eeaad891fcff0a532d27ed737cd4 # v1.0.1
with:
go-version-input: 1.20.8
go-package: ./...

0 comments on commit cc3621e

Please sign in to comment.