switch linter to gitea-actions
chore(deps): update dependency alpine_3_20/curl to v8.9.1-r0 switch hadolint to gitea-actions fix? test hadolint remove test move shellcheck dd cc dd dd ff ss dd ss dd ww dddd dd dd ff dd dd dd
This commit is contained in:
parent
9643d1a3f6
commit
78b7ccc0eb
4 changed files with 39 additions and 33 deletions
33
.gitea/workflows/lint.yaml
Normal file
33
.gitea/workflows/lint.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: linter
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
gitleaks:
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run Gitleaks
|
||||||
|
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: hadolint Dockerfile
|
||||||
|
|
||||||
|
shellcheck: # https://github.com/marketplace/actions/shellcheck
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: sudo-bot/action-shellcheck@latest
|
||||||
|
with:
|
||||||
|
cli-args: "shell.sh"
|
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
steps:
|
|
||||||
gitleaks:
|
|
||||||
image: zricethezav/gitleaks:v8.18.4
|
|
||||||
commands:
|
|
||||||
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
|
||||||
when:
|
|
||||||
- event: [push, pull_request, cron]
|
|
||||||
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
|
||||||
|
|
||||||
hadolint:
|
|
||||||
image: pipelinecomponents/hadolint:0.26.4
|
|
||||||
commands:
|
|
||||||
- hadolint Dockerfile
|
|
||||||
when:
|
|
||||||
- event: [push, pull_request, cron]
|
|
||||||
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
|
||||||
|
|
||||||
shellcheck:
|
|
||||||
image: "koalaman/shellcheck-alpine:v0.10.0"
|
|
||||||
commands:
|
|
||||||
- |
|
|
||||||
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
|
|
||||||
if echo "$line" | grep -q "shell script"; then
|
|
||||||
file_path=$(echo "$line" | awk -F':' '{print $1}')
|
|
||||||
shellcheck "$file_path"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
when:
|
|
||||||
- event: [push, pull_request, cron]
|
|
||||||
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
|
|
||||||
...
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM httpd:2.4.62-alpine3.20
|
FROM httpd:2.4.62-alpine3.20
|
||||||
|
|
||||||
# renovate: datasource=repology depName=alpine_3_20/curl versioning=loose
|
# renovate: datasource=repology depName=alpine_3_20/curl versioning=loose
|
||||||
ENV CURL_VERSION="8.9.0-r0"
|
ENV CURL_VERSION="8.9.1-r0"
|
||||||
# renovate: datasource=repology depName=alpine_3_20/wget versioning=loose
|
# renovate: datasource=repology depName=alpine_3_20/wget versioning=loose
|
||||||
ENV WGET_VERSION="1.24.5-r0"
|
ENV WGET_VERSION="1.24.5-r0"
|
||||||
|
|
||||||
|
|
5
shell.sh
Normal file
5
shell.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
hallo="welt welt"
|
||||||
|
|
||||||
|
echo $hallo
|
Loading…
Reference in a new issue