Skip to content

Commit 6d386fc

Browse files
lowercase
1 parent 9588d48 commit 6d386fc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/trivy_scan.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
REGISTRY: ghcr.io
13-
IMAGE_NAME: ${{ github.repository }}
13+
IMAGE_NAME: ${{ github.repository_owner }}/${{ github.event.repository.name }}
1414
TRIVY_SECURITY: SECURITY
1515

1616
jobs:
@@ -25,6 +25,9 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
2727

28+
- name: Set lowercase image name
29+
run: echo "IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
30+
2831
- name: Extract tag from workflow run
2932
run: |
3033
TAG_REF="${{ github.event.workflow_run.head_ref }}"

0 commit comments

Comments
 (0)