Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
id: version
run: echo "value=commit-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Github org lowercase
id: org
run: echo "value=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -33,12 +37,12 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ steps.version.outputs.value }}
ghcr.io/${{ steps.org.outputs.value }}:${{ steps.version.outputs.value }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: "ghcr.io/${{ github.repository }}:${{ steps.version.outputs.value }}"
image-ref: "ghcr.io/${{ steps.org.outputs.value }}:${{ steps.version.outputs.value }}"
format: "sarif"
output: "trivy-results.sarif"

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Github org lowercase
id: org
run: echo "value=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -29,5 +33,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ steps.org.outputs.value }}:${{ github.ref_name }}