From 5038514d2052ff2b01ae75102ac0edb151349ff0 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 7 Nov 2024 09:42:54 +0000 Subject: [PATCH] Try hard coded linting --- .github/actions/lint/action.yml | 2 +- .github/workflows/build.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/actions/lint/action.yml b/.github/actions/lint/action.yml index 3be3a11..cc60180 100644 --- a/.github/actions/lint/action.yml +++ b/.github/actions/lint/action.yml @@ -13,7 +13,7 @@ runs: steps: - uses: hadolint/hadolint-action@v3.1.0 with: - dockerfile: docker/tna-python/Dockerfile + dockerfile: ${{ inputs.docker-context }}/Dockerfile ignore: SC1091,${{ inputs.ignore-linting-rules }} - name: ShellCheck run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ce6ad8..233fc0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: docker/tna-python/Dockerfile + ignore: SC1091,DL3002,DL3006 + - name: ShellCheck + run: | + cd docker/tna-python + [ -d "./bin" ] && shellcheck --external-sources --exclude=SC1091 ./bin/* + shellcheck --external-sources --exclude=SC2148 ./Dockerfile + shell: bash + + - name: Lint uses: ./.github/actions/lint with: