dd
This commit is contained in:
parent
d2129b6c36
commit
3ccdf43dbe
1 changed files with 12 additions and 4 deletions
|
@ -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
|
# 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:
|
jobs:
|
||||||
gitleaks:
|
lint:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -17,15 +17,23 @@ jobs:
|
||||||
uses: docker://zricethezav/gitleaks:v8.18.4
|
uses: docker://zricethezav/gitleaks:v8.18.4
|
||||||
with:
|
with:
|
||||||
args: detect --no-git --verbose --source ${{ github.workspace }}
|
args: detect --no-git --verbose --source ${{ github.workspace }}
|
||||||
|
|
||||||
hadolint:
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Run hadolint
|
- name: Run hadolint
|
||||||
uses: docker://pipelinecomponents/hadolint:0.26.4
|
uses: docker://pipelinecomponents/hadolint:0.26.4
|
||||||
with:
|
with:
|
||||||
args: false ; hadolint Dockerfile
|
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
|
# shellcheck: # https://github.com/marketplace/actions/shellcheck
|
||||||
# steps:
|
# steps:
|
||||||
|
|
Loading…
Reference in a new issue