Skip to content

Commit

Permalink
fix GH actions for uppercase'd repo names
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahG-579462 committed May 16, 2024
1 parent 9cd644c commit 8d93f59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/vulnerabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
run:
working-directory: .
steps:
- id: string
uses: ASzc/change-string-case-action
with:
string: ${{ github.repository }}
- name: Checkout pygeoapi
uses: actions/checkout@v4
- name: Scan vulnerabilities with trivy
Expand All @@ -34,7 +38,7 @@ jobs:
scan-ref: .
- name: Build locally the image from Dockerfile
run: |
docker buildx build -t ${{ github.repository }}:${{ github.sha }} --platform linux/amd64 --no-cache -f Dockerfile .
docker buildx build -t ${{ steps.string.outputs.lowercase }}:${{ github.sha }} --platform linux/amd64 --no-cache -f Dockerfile .
- name: Scan locally built Docker image for vulnerabilities with trivy
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -43,4 +47,4 @@ jobs:
ignore-unfixed: true
severity: CRITICAL,HIGH
vuln-type: os,library
image-ref: '${{ github.repository }}:${{ github.sha }}'
image-ref: '${{ steps.string.outputs.lowercase }}:${{ github.sha }}'

0 comments on commit 8d93f59

Please sign in to comment.