Comments (2)
Ah,thanks! Totally forgot about this one.
I made a super-weird workaround:
name: Lint Docker files
on:
push:
paths:
- .github/workflows/docker_lint.yaml
- .hadolint.yaml
- Dockerfile*
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install hadolint
run: |
docker pull hadolint/hadolint:latest
container_id=$(docker create hadolint/hadolint)
docker cp $container_id:/bin/hadolint .
- run: ./hadolint --version
- run: ./hadolint Dockerfile*
Given what you wrote, it feels most natural to just go with https://github.com/jbergstroem/hadolint-gh-action to me, will check it out.
Since I could work it around already and more options are on the table and no one seems to work on the issues reporting here anyway -> closing!
Thanks 🙏🏼
from hadolint-action.
Hope I'm not too late to help out.
ISSUE #3 contains a lot of conversation regarding this topic. You have several options:
- Using 3rd-party GitHub Action (#3 (comment))
- Apparently, setting
HADOLINT_RECURSIVE
environment variable totrue
seems to work somewhat (#3 (comment)) - If you don't mind using Docker container, I built one (so it's CI platform agnostic)
kgrv/hadolint
It can scan entire directories (including nested) with simpledocker run
command
docker run --rm -v PATH:/workspace kgrv/hadolint
Integrate this into GitHub workflow with:
- name: Haskell Dockerfile Linter
run: docker run --rm -v ${PWD}:/workspace kgrv/hadolint
I hope this helps, cheers!
from hadolint-action.
Related Issues (20)
- Missing Changelog HOT 2
- How do I run hadolint on arm64?
- How recursive scan from a defined directory? HOT 1
- Improvements: no-fail flag and file output
- Error: Unable to process command '::add-matcher::./tmp.nA8912gdP6/problem-matcher.json' HOT 1
- Release management: improve semantic versioning HOT 2
- Reported issues wont fail the build HOT 1
- Enable dependabot in Settings HOT 1
- [INVESTIGATED/TESTED] Configuration File Pathing Issue + Subsequent Issue HOT 2
- Error: No hadolint failure but Actions job fails HOT 16
- Provide v2 HOT 1
- `set-output` deprecation
- Problem matcher picks up issues that were ignored in the config file
- How to use hadolint action within organization repo? HOT 1
- Capture severity in problem matcher
- received unexpected HTTP status: 503 Service Unavailable HOT 2
- withBinaryFile: does not exist (No such file or directory) HOT 3
- Dockerfile is a directory
- Jenkins Piplines unable to check multeple dockerfiles.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadolint-action.