This commit is contained in:
Michael Grote 2024-09-02 20:57:58 +02:00
parent d2129b6c36
commit 3ccdf43dbe

View file

@ -9,7 +9,7 @@ on:
# Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1
jobs:
gitleaks:
lint:
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -17,15 +17,23 @@ jobs:
uses: docker://zricethezav/gitleaks:v8.18.4
with:
args: detect --no-git --verbose --source ${{ github.workspace }}
hadolint:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run hadolint
uses: docker://pipelinecomponents/hadolint:0.26.4
with:
args: false ; hadolint Dockerfile
- name: Send notification on error
uses: dawidd6/action-send-mail@v3
if: failure()
with:
connection_url: smtp://docker10.mgrote.net:1025
secure: false
ignore_cert: true
to: michael.grote@posteo.de
from: Gitea Actions <gitea@mgrote.net>
subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}"
body: Job of ${{ env.github.repository }} failed!
# shellcheck: # https://github.com/marketplace/actions/shellcheck
# steps: