mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-03-26 21:35:58 +00:00
Fix PR test tag: use pr number instead of ref_name to avoid slash in tag
This commit is contained in:
parent
b8703845db
commit
fbbfab435d
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -58,7 +58,7 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
context: ./build
|
context: ./build
|
||||||
file: ./build/Dockerfile
|
file: ./build/Dockerfile
|
||||||
tags: "${{ env.GHCR_REPO }}:dev-${{ github.ref_name }}"
|
tags: "${{ env.GHCR_REPO }}:dev-pr${{ github.event.pull_request.number }}"
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
version=${{ needs.resolve-version.outputs.version }}
|
version=${{ needs.resolve-version.outputs.version }}
|
||||||
@ -66,7 +66,7 @@ jobs:
|
|||||||
- name: Run Trivy vulnerability scan
|
- name: Run Trivy vulnerability scan
|
||||||
uses: aquasecurity/trivy-action@0.30.0
|
uses: aquasecurity/trivy-action@0.30.0
|
||||||
with:
|
with:
|
||||||
image-ref: "${{ env.GHCR_REPO }}:dev-${{ github.ref_name }}"
|
image-ref: "${{ env.GHCR_REPO }}:dev-pr${{ github.event.pull_request.number }}"
|
||||||
format: 'sarif'
|
format: 'sarif'
|
||||||
exit-code: 0
|
exit-code: 0
|
||||||
severity: 'CRITICAL,HIGH'
|
severity: 'CRITICAL,HIGH'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user