diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..9b781f6 --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -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" diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml deleted file mode 100644 index bf7074c..0000000 --- a/.woodpecker/lint.yml +++ /dev/null @@ -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"' -... diff --git a/Dockerfile b/Dockerfile index 56a174e..53e1c0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM httpd:2.4.62-alpine3.20 # 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 ENV WGET_VERSION="1.24.5-r0" diff --git a/shell.sh b/shell.sh new file mode 100644 index 0000000..0dc4bf3 --- /dev/null +++ b/shell.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +hallo="welt welt" + +echo $hallo