Skip to content

Commit 03614b9

Browse files
authored
Merge pull request #11 from nginxinc/test-ci
Test and fix ci
2 parents c1beda6 + 9df0ecc commit 03614b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: |
4747
echo "::set-output name=sha::$(echo ${GITHUB_SHA} | cut -c1-7)"
4848
echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)"
49-
echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
49+
echo "::set-output name=version::$(echo ${GITHUB_REF} | cut -d '/' -f 2)"
5050
5151
build:
5252
name: Build Image
@@ -116,15 +116,15 @@ jobs:
116116
build-args: |
117117
VERSION=${{ steps.var.outputs.version }}
118118
- name: Run Trivy vulnerability scanner
119-
uses: aquasecurity/[email protected].3
119+
uses: aquasecurity/[email protected].5
120120
continue-on-error: true
121121
with:
122122
image-ref: nginx/nginx-ingress-operator:${{ steps.meta.outputs.version }}
123123
format: 'sarif'
124124
output: 'trivy-results.sarif'
125125
ignore-unfixed: 'true'
126126
- name: Upload Trivy scan results to GitHub Security tab
127-
uses: github/codeql-action/upload-sarif@v1
127+
uses: github/codeql-action/upload-sarif@v2
128128
continue-on-error: true
129129
with:
130130
sarif_file: 'trivy-results.sarif'
@@ -145,7 +145,7 @@ jobs:
145145
steps:
146146
- name: Workflow Status
147147
id: check
148-
uses: martialonline/workflow-status@v2
148+
uses: martialonline/workflow-status@v3
149149
- name: Send Notification
150150
uses: 8398a7/action-slack@v3
151151
if: steps.check.outputs.status == 'failure'

0 commit comments

Comments
 (0)