From 79fd167c658b516cf6243e5462897cad3f9af197 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 27 Aug 2024 21:33:46 +0200 Subject: [PATCH] dd --- .gitea/workflows/gitleaks.yaml | 16 -------------- .gitea/workflows/hadolint.yaml | 16 -------------- .../workflows/{shellcheck.yaml => lint.yaml} | 22 ++++++++++++++++++- shell.sh | 5 +++++ 4 files changed, 26 insertions(+), 33 deletions(-) delete mode 100644 .gitea/workflows/gitleaks.yaml delete mode 100644 .gitea/workflows/hadolint.yaml rename .gitea/workflows/{shellcheck.yaml => lint.yaml} (55%) create mode 100644 shell.sh diff --git a/.gitea/workflows/gitleaks.yaml b/.gitea/workflows/gitleaks.yaml deleted file mode 100644 index 9302ab5..0000000 --- a/.gitea/workflows/gitleaks.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: gitleaks -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 }} diff --git a/.gitea/workflows/hadolint.yaml b/.gitea/workflows/hadolint.yaml deleted file mode 100644 index 4fbdf6e..0000000 --- a/.gitea/workflows/hadolint.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: gitleaks -on: - push: - branches: [ master ] - pull_request: - -jobs: - hadolint: - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run hadolint - uses: docker://pipelinecomponents/hadolint:0.26.4 - with: - args: hadolint Dockerfile diff --git a/.gitea/workflows/shellcheck.yaml b/.gitea/workflows/lint.yaml similarity index 55% rename from .gitea/workflows/shellcheck.yaml rename to .gitea/workflows/lint.yaml index 2afae5c..dec4b24 100644 --- a/.gitea/workflows/shellcheck.yaml +++ b/.gitea/workflows/lint.yaml @@ -1,10 +1,30 @@ -name: gitleaks +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: steps: - name: Run shellcheck # https://gitea.com/gitea/act_runner/issues/189 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