12 Commits

Author SHA1 Message Date
José Lorenzo Rodríguez 54c9adbab1 fix release 2023-01-17 17:19:55 +01:00
José Lorenzo Rodríguez 0ef98d9a5c Merge pull request #71 from DracoBlue/patch-2
Make output-file by default to /dev/stdout
2023-01-17 17:09:37 +01:00
DracoBlue 1a139ce6cc Make output-file by default to /dev/stdout
To fix https://github.com/hadolint/hadolint-action/issues/60 in hadolint-action>v2.0.0
2023-01-17 15:38:26 +01:00
José Lorenzo Rodríguez 4b5806eb9c Merge pull request #66 from javoweb/hadolint-2.11
Upgrade hadolint to 2.12
2022-11-11 12:13:19 +01:00
José Lorenzo Rodríguez e977686583 Merge pull request #56 from mgray88/patch-1
Update usage example
2022-11-11 12:10:59 +01:00
José Lorenzo Rodríguez 67d715bb13 Merge pull request #65 from mrdoodles/fix-github-deprecations
fix: update deprecated commands
2022-11-11 12:08:51 +01:00
Gonzalo Tixilima 48c4120377 upgrade hadolint to 2.12 2022-11-11 05:52:50 -05:00
Gonzalo Tixilima e81a8de9db upgrade hadolint to 2.11 2022-11-11 01:18:35 -05:00
mrdoodles 68a2276a3c fix-github-deprecations 2022-11-08 21:33:58 +00:00
José Lorenzo Rodríguez eeab5ede16 Merge pull request #57 from offa/hadolint_2.10
Update hadolint to 2.10
2022-05-13 12:59:47 +02:00
offa 169ddcf265 Update hadolint to 2.10
Use GHCR instead of Dockerhub and a fully qualified FROM
2022-05-13 12:48:12 +02:00
Mike Gray d51839a6b5 Update usage example
"Example to create a comment in a PR" doesn't work with v2.0.0
2022-04-23 10:19:23 -04:00
5 changed files with 11 additions and 8 deletions
+4 -4
View File
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
container: pipelinecomponents/hadolint:0.10.1
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run hadolint
run: hadolint Dockerfile
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-20.04
needs: ["lint"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t $TEST_IMAGE_NAME .
@@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-20.04
needs: build-test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run integration test 1
uses: ./
@@ -96,7 +96,7 @@ jobs:
needs: integration-tests
steps:
- uses: actions/checkout@v2
- uses: cycjimmy/semantic-release-action@v2
- uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/git
+1 -1
View File
@@ -1,4 +1,4 @@
FROM hadolint/hadolint:v2.9.3-debian
FROM ghcr.io/hadolint/hadolint:v2.12.0-debian
COPY LICENSE README.md problem-matcher.json /
COPY hadolint.sh /usr/local/bin/hadolint.sh
+1 -1
View File
@@ -15,7 +15,7 @@ Add the following step to your workflow configuration:
```yml
steps:
- uses: actions/checkout@v2
- uses: hadolint/hadolint-action@v2.0.0
- uses: hadolint/hadolint-action@v2.1.0
with:
dockerfile: Dockerfile
```
+1 -1
View File
@@ -18,7 +18,7 @@ inputs:
output-file:
required: false
description: 'The path where to save the linting results to'
default:
default: "/dev/stdout"
# standart hadolint options:
no-color:
+4 -1
View File
@@ -44,7 +44,10 @@ if [ -n "$HADOLINT_OUTPUT" ]; then
fi
RESULTS="${RESULTS//$'\\n'/''}"
echo "::set-output name=results::$RESULTS"
echo "results<<EOF" >> $GITHUB_OUTPUT
echo "${RESULTS}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
{ echo "HADOLINT_RESULTS<<EOF"; echo "$RESULTS"; echo "EOF"; } >> $GITHUB_ENV