Compare commits

..
1 Commits
Author SHA1 Message Date
admin dbf36793de fix(ci): gitleaks blockerar pa arbetstradet, historik loggas informativt
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 3s
masterplan-lock / check (push) Successful in 21s
security / scan (pull_request) Failing after 32s
CI (SIAX Cloud) / security (pull_request) Successful in 37s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 59s
CI (SIAX Cloud) / integration (pull_request) Successful in 2m46s
CI (SIAX Cloud) / quality (pull_request) Successful in 3m11s
2026-11-10 18:50:21 +01:00
2 changed files with 3 additions and 16 deletions
+1 -5
View File
@@ -8,14 +8,10 @@ name: masterplan-lock
on:
push:
branches: [main]
branches: ["**"]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
+2 -11
View File
@@ -81,12 +81,12 @@ jobs:
zricethezav/gitleaks:v8.30.1 detect --source /repo --no-banner --exit-code 1 \
|| echo "::notice::historiska traffar loggas informativt"
# Trivy filsystem, blockerar pa HIGH och CRITICAL sarbarheter och hemligheter (SUP-*)
# Trivy filsystem, blockerar pa HIGH och CRITICAL (SUP-*)
- name: Trivy filesystem scan
run: |
set +e
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
aquasec/trivy:0.76.2 fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 --no-progress /repo > /tmp/scan.log 2>&1
aquasec/trivy:0.76.2 fs --scanners vuln,secret,misconfig --severity HIGH,CRITICAL --exit-code 1 --no-progress /repo > /tmp/scan.log 2>&1
rc=$?
set -e
tail -n 120 /tmp/scan.log
@@ -94,15 +94,6 @@ jobs:
if [ $rc -eq 1 ]; then echo "::error::Trivy filesystem scan hittade fynd"; exit 1; fi
echo "::warning::Trivy filesystem scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
# Dockerfile- och IaC-misconfig är informativt: DS-0002 (root-USER)
# kräver ändrade runtime-användare och hanteras per repo, inte i grinden.
- name: Trivy config informational
continue-on-error: true
run: |
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
aquasec/trivy:0.76.2 fs --scanners misconfig --severity HIGH,CRITICAL \
--exit-code 1 --no-progress /repo || echo "::notice::misconfig loggas informativt"
# Kanda sarbarheter i lasfilen. osv-scanner 2.x hittar inte alltid
# osv-scanner.toml sjalv, sa den skickas explicit nar den finns.
- name: OSV Scanner