diff --git a/.github/workflows/reusable-linting.yaml b/.github/workflows/reusable-linting.yaml index ca9f7e0..1896ba7 100644 --- a/.github/workflows/reusable-linting.yaml +++ b/.github/workflows/reusable-linting.yaml @@ -12,6 +12,10 @@ on: required: false type: boolean default: true + timeout: + required: false + type: string + default: "10m" jobs: golangci_lint: @@ -23,7 +27,7 @@ jobs: env: GOLANGCILINT_VERSION: v1.52-alpine shell: bash - run: docker run -v $PWD:/work -w /work golangci/golangci-lint:${GOLANGCILINT_VERSION} golangci-lint run + run: docker run -v $PWD:/work -w /work golangci/golangci-lint:${GOLANGCILINT_VERSION} golangci-lint --timeout=${{ inputs.timeout }} run hadolint: runs-on: ubuntu-latest