From 134be6f042d80e953fadfc6876ec307ec4219174 Mon Sep 17 00:00:00 2001 From: RTann Date: Wed, 10 Jul 2024 13:14:44 -0400 Subject: [PATCH 1/2] ci(scanner): remove vcs information from binary --- .github/workflows/scanner-release-vuln-update.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scanner-release-vuln-update.yaml b/.github/workflows/scanner-release-vuln-update.yaml index 2d06d5c9009ec..b58f5e4cf59ad 100644 --- a/.github/workflows/scanner-release-vuln-update.yaml +++ b/.github/workflows/scanner-release-vuln-update.yaml @@ -2,6 +2,11 @@ name: Scanner release vulnerability update on: schedule: - cron: "0 */3 * * *" + pull_request: # TODO: DELETE THIS PRIOR TO MERGE + types: + - opened + - reopened + - synchronize workflow_dispatch: jobs: @@ -130,7 +135,7 @@ jobs: # Just run go mod tidy and hope for the best. go mod tidy cd scanner - go build -trimpath -o bin/updater ./cmd/updater + go build -trimpath -buildvcs=false -o bin/updater ./cmd/updater go clean -cache -modcache mkdir ${{ env.ROX_PRODUCT_VERSION }} From 083baa1f65c50d67cb18222ed05dbc235547d97f Mon Sep 17 00:00:00 2001 From: RTann Date: Wed, 10 Jul 2024 14:32:22 -0400 Subject: [PATCH 2/2] remove PR run --- .github/workflows/scanner-release-vuln-update.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/scanner-release-vuln-update.yaml b/.github/workflows/scanner-release-vuln-update.yaml index b58f5e4cf59ad..7a0af61ed5760 100644 --- a/.github/workflows/scanner-release-vuln-update.yaml +++ b/.github/workflows/scanner-release-vuln-update.yaml @@ -2,11 +2,6 @@ name: Scanner release vulnerability update on: schedule: - cron: "0 */3 * * *" - pull_request: # TODO: DELETE THIS PRIOR TO MERGE - types: - - opened - - reopened - - synchronize workflow_dispatch: jobs: