From af4a4ffe1dbde7e950210e59457a8106e9ffc560 Mon Sep 17 00:00:00 2001 From: ArkaSaha30 Date: Fri, 5 Apr 2024 00:43:56 +0530 Subject: [PATCH] [3.4]Add trivy scan as a job in release workflow Signed-off-by: ArkaSaha30 --- .github/workflows/release.yaml | 90 ++++++++++++++++------- .github/workflows/trivy-nightly-scan.yaml | 37 ---------- 2 files changed, 64 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/trivy-nightly-scan.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bb20f4645..550731523 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,29 +4,67 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - id: goversion - run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" - - uses: actions/setup-go@v2 - with: - go-version: ${{ steps.goversion.outputs.goversion }} - - name: release - run: | - set -euo pipefail - - git config --global user.email "github-action@etcd.io" - git config --global user.name "Github Action" - gpg --batch --gen-key <> "$GITHUB_OUTPUT" + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 + with: + go-version: ${{ steps.goversion.outputs.goversion }} + - name: release + run: | + set -euo pipefail + + git config --global user.email "github-action@etcd.io" + git config --global user.name "Github Action" + gpg --batch --gen-key <