From 78b7ccc0eb965594b458f14d70fa4e845dc9e060 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 27 Aug 2024 21:19:51 +0200 Subject: [PATCH] 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 --- .gitea/workflows/lint.yaml | 33 +++++++++++++++++++++++++++++++++ .woodpecker/lint.yml | 32 -------------------------------- Dockerfile | 2 +- shell.sh | 5 +++++ 4 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 .gitea/workflows/lint.yaml delete mode 100644 .woodpecker/lint.yml create mode 100644 shell.sh 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