From 5326d79d3e38449c85d8e1c951596a8616b3e2bc Mon Sep 17 00:00:00 2001 From: Robert Sirchia Date: Fri, 6 Sep 2024 15:17:32 -0400 Subject: [PATCH] refectoring to ONE GH action Signed-off-by: Robert Sirchia --- .github/workflows/file-govulncheck.yml | 19 ------------------- ...{daily-govulncheck.yml => govulncheck.yml} | 5 ++++- 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/file-govulncheck.yml rename .github/workflows/{daily-govulncheck.yml => govulncheck.yml} (89%) diff --git a/.github/workflows/file-govulncheck.yml b/.github/workflows/file-govulncheck.yml deleted file mode 100644 index 4b52d34ce..000000000 --- a/.github/workflows/file-govulncheck.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: file-govulncheck -on: - push: - paths: - - go.sum - -jobs: - govulncheck: - name: govulncheck - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # pin@5.0.2 - with: - go-version: '1.22' - - name: govulncheck - uses: golang/govulncheck-action@dd0578b371c987f96d1185abb54344b44352bd58 # pin@1.0.3 - with: - go-package: ./... diff --git a/.github/workflows/daily-govulncheck.yml b/.github/workflows/govulncheck.yml similarity index 89% rename from .github/workflows/daily-govulncheck.yml rename to .github/workflows/govulncheck.yml index 613622916..b5ea2c87a 100644 --- a/.github/workflows/daily-govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -1,5 +1,8 @@ -name: daily-govulncheck +name: govulncheck on: + push: + paths: + - go.sum schedule: - cron: "0 0 * * *"