aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-08-13 15:33:07 +0300
committerSyndamia <kamen@syndamia.com>2024-08-13 15:33:07 +0300
commit8b3feac040104c51cdbf9a518c976ea6b34a8381 (patch)
treefa577f1f6ddd59f73096af730fec977363d41e28
parent320e2a2ac1cc9c06fb4415c3b1c083c35b3a6387 (diff)
downloadpico-web-8b3feac040104c51cdbf9a518c976ea6b34a8381.tar
pico-web-8b3feac040104c51cdbf9a518c976ea6b34a8381.tar.gz
pico-web-8b3feac040104c51cdbf9a518c976ea6b34a8381.zip
fix(cd*): Added explicit sha for upload trivy results
-rw-r--r--.github/workflows/cd-dev.yml1
-rw-r--r--.github/workflows/cd.yml3
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml
index 0ed1bb8..8bf5471 100644
--- a/.github/workflows/cd-dev.yml
+++ b/.github/workflows/cd-dev.yml
@@ -47,3 +47,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
+ sha: ${{ github.sha }}
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 2ed8a43..e95f2e6 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -23,7 +23,7 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pico-web-server:latest
Test-Trivy:
- name: Scan development docker container with trivy
+ name: Scan production docker container with trivy
runs-on: ubuntu-latest
needs: Build-docker-and-push
steps:
@@ -40,6 +40,7 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
+ sha: ${{ github.sha }}
Release:
name: Make github release