Skip to content

Commit

Permalink
Solution that assumes backport to release 2.6 branch
Browse files Browse the repository at this point in the history
Skip-test: true
Skip-unit-test: true
Skip-func-test: true

Required-githooks: true

Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jun 25, 2024
1 parent cf121a2 commit b7277dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/triviy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jobs:
# generate trivy report only if no errors detected
- name: Generate trivy report file extension
# github.base_ref-based for PR and github.ref_name-based for schedule/workflow_dispatch
id: gen_extension
run: |
EXTENSION=$(echo "${{ github.ref }}" | sed -e 's/release\///' -e's/\//_/' )
if [ -z "${VAR}" ]; then
EXTENSION=$(echo "${{ github.base_ref }}" | sed -e 's/release\///' -e's/\//_/' )
EXTENSION=$(echo "${{ github.base_ref }}" | sed -e 's/release\///' -e's/\//_/' )
if [ -z "${EXTENSION}" ]; then
EXTENSION=$(echo "${{ github.ref_name }}" | sed -e 's/release\///' -e's/\//_/' )
fi
echo "EXTENSION=$EXTENSION" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit b7277dd

Please sign in to comment.