Skip to content

Commit

Permalink
gh-actions:govulncheck
Browse files Browse the repository at this point in the history
Add a new CI lane for checking go code vulnerabilities.

Signed-off-by: Talor Itzhak <[email protected]>
  • Loading branch information
Tal-or committed Jan 2, 2025
1 parent 3d606e1 commit 94a2bbe
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI vulnerability detection with govulncheck

on:
pull_request:
branches:
- main
- "release-4.1[8]"
push:
branches:
- main

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up golang
uses: actions/setup-go@v5
with:
go-version: 1.23.3

- name: Show current working directory
run: pwd

- name: Run govulncheck
uses: golang/govulncheck-action@v1
with:
go-package: "./..."

0 comments on commit 94a2bbe

Please sign in to comment.