mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user