fix: trivy workflow
Some checks failed
Lint, Build, Scan and Publish Docker Image / lint (push) Failing after 39s
Lint, Build, Scan and Publish Docker Image / build-and-push (push) Successful in 1m47s

This commit is contained in:
2026-01-18 12:40:03 +01:00
parent 724883fd04
commit fb54130928

View File

@@ -1,5 +1,5 @@
---
name: Build, Scan and Publish Docker Image
name: Lint, Build, Scan and Publish Docker Image
on:
push:
branches:
@@ -8,6 +8,29 @@ on:
- 'v*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruff
run: pip install ruff
- name: Run Ruff (Lint & Format Check)
run: |
ruff check .
ruff format --check .
- name: Lint Dockerfile (Hadolint)
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
- name: Security Lint Dockerfile (Trivy)
run: |
trivy config --server http://trivy-server:8080 .
build-and-push:
runs-on: ubuntu-latest
steps: