From c0714c188f2d3c48af8c1fc2554cb1dbf2bc4e76 Mon Sep 17 00:00:00 2001 From: Kim Fehrs <122281269+kofrdx@users.noreply.github.com> Date: Thu, 10 Aug 2023 13:44:13 +0200 Subject: [PATCH] readd the tag specification snyk requires the tag field to be set. Future updates will allow snyk scan to work with the tags field also. --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27495794..641fa4c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,7 +95,11 @@ jobs: tag: ${{ steps.setup_tags.outputs.tag }} steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - + + - name: Setup tags for docker image + id: setup_tags + run: echo "tag=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Use Node.js uses: actions/setup-node@7c29869aec4da703a571b27bcd84d4f15af0b56e with: @@ -126,9 +130,8 @@ jobs: image_registry: "docker.io" image_organization: "radixdlt" image_name: "private-radix-dapp-toolkit" + tag: ${{ needs.build.outputs.tag }} tags: | - type=sha,event=branch - type=sha,event=pr type=semver,pattern={{version}} context: "./" dockerfile: "./Dockerfile"