fix(ci): move ACT guards to step level; add guards to security.yml

env context is invalid in job-level if conditions — moved all ACT
guards down to individual steps. Also guards docker login + scout
in security.yml so act can run the build-only part of that workflow.
This commit is contained in:
jubnl
2026-05-25 21:10:36 +02:00
parent 797183de08
commit f92b95e054
3 changed files with 18 additions and 3 deletions
+2
View File
@@ -25,11 +25,13 @@ jobs:
tags: trek:scan
- uses: docker/login-action@v3
if: ${{ !env.ACT }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/scout-action@v1
if: ${{ !env.ACT }}
with:
command: cves
image: trek:scan