ci(ai): fix security scan — auth clone (org repo) + drop unsupported trivy flag
Some checks failed
Security / scan (push) Failing after 15s
Some checks failed
Security / scan (push) Failing after 15s
This commit is contained in:
@@ -24,8 +24,10 @@ jobs:
|
||||
- name: Tooling
|
||||
run: apk add --no-cache git curl bash tar python3
|
||||
|
||||
- name: Repo auschecken (git.eulernest.eu -> LAN via Runner-add-host)
|
||||
run: git clone --depth 1 "https://git.eulernest.eu/${GITHUB_REPOSITORY}.git" src
|
||||
- name: Repo auschecken (Auto-Token — Org-Repo braucht Auth; LAN via add-host)
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
run: git clone --depth 1 "https://x-access-token:${GITEA_TOKEN}@git.eulernest.eu/${GITHUB_REPOSITORY}.git" src
|
||||
|
||||
- name: Gitleaks (Secret-Scan, ARM64)
|
||||
id: gl
|
||||
@@ -40,7 +42,7 @@ jobs:
|
||||
run: |
|
||||
curl -sSL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh \
|
||||
| sh -s -- -b /usr/local/bin
|
||||
cd src && trivy config --severity HIGH,CRITICAL --exit-code 1 --no-progress . 2>&1 | tee -a /tmp/scan.log
|
||||
cd src && trivy config --severity HIGH,CRITICAL --exit-code 1 . 2>&1 | tee -a /tmp/scan.log
|
||||
echo "code=${PIPESTATUS[0]}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Gate — hart blockieren bei Funden
|
||||
|
||||
Reference in New Issue
Block a user