Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burdzwastaken/hadolint-action
A GitHub action to run hadolint and reports violations given a Dockerfile within a repository
https://github.com/burdzwastaken/hadolint-action
Last synced: 9 days ago
JSON representation
A GitHub action to run hadolint and reports violations given a Dockerfile within a repository
- Host: GitHub
- URL: https://github.com/burdzwastaken/hadolint-action
- Owner: burdzwastaken
- Archived: true
- Created: 2018-11-22T08:01:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T00:44:26.000Z (9 months ago)
- Last Synced: 2024-08-01T16:34:52.831Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actions - Runs Hadolint against a Dockerfile within a repository
- fucking-awesome-actions - Runs Hadolint against a Dockerfile within a repository
- awesome-workflows - Runs Hadolint against a Dockerfile within a repository
README
# Hadolint Action
DEPRECATED: Please use the official [hadolint github action](https://github.com/hadolint/hadolint-action)
A GitHub action to run [hadolint](https://github.com/hadolint/hadolint) and reports violations given a Dockerfile within a repository on a pull request
## Usage
### V2 Workflows
```
on: pull_request
name: hadolint action
jobs:
hadolintOnPr:
name: hadolint on pr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: hadolint on pr
uses: burdzwastaken/hadolint-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HADOLINT_ACTION_DOCKERFILE_FOLDER: .
```### V1 Workflows
```
workflow "hadolint action" {
on = "pull_request"
resolves = ["hadolint on pr"]
}action "hadolint on pr" {
uses = "burdzwastaken/hadolint-action@master"
secrets = ["GITHUB_TOKEN"]
env = {
HADOLINT_ACTION_DOCKERFILE_FOLDER = "."
}
}
```## Environment Variables
Name | Default | Description
--- | --- | ---
`HADOLINT_ACTION_DOCKERFILE_FOLDER` | `.` | Which directory the `Dockerfile` to run hadolint on resides in. Relative to the root of the repository.
`HADOLINT_ACTION_COMMENT` | `true` | Set to `false` to disable commenting back on the PR with the violations found in the `Dockerfile`.## In Action
![demo](images/hadolint-action.png)
## FAQ
* How can I ignore rules as this action does not (yet) support supplying a
configuration file?
* You can utilize
[inline-ignores](https://github.com/hadolint/hadolint#inline-ignores) within
your `Dockerfile`## TODO
* Let users supply their own `hadolint.yaml` and/or trusted registries passed through
* Multiple `Dockerfile` support