All Projects → reviewdog → action-hadolint

reviewdog / action-hadolint

Licence: MIT License
Run hadolint with reviewdog 🐶

Programming Languages

shell
77523 projects
jq
24 projects

Projects that are alternatives of or similar to action-hadolint

action-rubocop
Run rubocop with reviewdog 🐶
Stars: ✭ 83 (+118.42%)
Mutual labels:  github-actions, reviewdog
action-dotenv-linter
GitHub Action to run dotenv-linter ⚡️
Stars: ✭ 14 (-63.16%)
Mutual labels:  github-actions, reviewdog
action-brakeman
Run brakeman with reviewdog 🐶
Stars: ✭ 22 (-42.11%)
Mutual labels:  github-actions, reviewdog
action-ktlint
Run Ktlint with reviewdog
Stars: ✭ 41 (+7.89%)
Mutual labels:  github-actions, reviewdog
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-34.21%)
Mutual labels:  github-actions
jcefbuild
Binary builds of java-cef
Stars: ✭ 160 (+321.05%)
Mutual labels:  github-actions
sentry
GitHub Actions for interacting with Sentry.io
Stars: ✭ 14 (-63.16%)
Mutual labels:  github-actions
commit-comment
A GitHub action to create a comment for a commit on GitHub
Stars: ✭ 62 (+63.16%)
Mutual labels:  github-actions
demo-ci
Aula prática sobre servidores de Integração Contínua
Stars: ✭ 15 (-60.53%)
Mutual labels:  github-actions
awesome-address-book
This project shows a basic address book built with ReactJS, Redux Toolkit and Typescript 📖
Stars: ✭ 20 (-47.37%)
Mutual labels:  github-actions
invalidate-cloudfront-action
Invalidate AWS CloudFront distribution paths
Stars: ✭ 84 (+121.05%)
Mutual labels:  github-actions
latex-action
GitHub Action to compile LaTeX documents
Stars: ✭ 123 (+223.68%)
Mutual labels:  github-actions
sentry-release
GitHub Action for publishing a new release to Sentry.io
Stars: ✭ 13 (-65.79%)
Mutual labels:  github-actions
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+194.74%)
Mutual labels:  github-actions
ci-notice
😱 Notify you when CI fails.
Stars: ✭ 25 (-34.21%)
Mutual labels:  github-actions
redis-github-action
Use Redis in GitHub Actions
Stars: ✭ 56 (+47.37%)
Mutual labels:  github-actions
CIAnalyzer
A tool collecting multi CI services build data and export it for creating self-hosting build dashboard.
Stars: ✭ 52 (+36.84%)
Mutual labels:  github-actions
php-skeleton
A skeleton to start new high-quality PHP projects without worrying about bootstrapping everything from scratch.
Stars: ✭ 23 (-39.47%)
Mutual labels:  github-actions
cfn-lint-action
GitHub Action for interacting with CloudFormation Linter
Stars: ✭ 41 (+7.89%)
Mutual labels:  github-actions
actions-setup-perl
Setup Perl environment Action
Stars: ✭ 51 (+34.21%)
Mutual labels:  github-actions

GitHub Action: Run hadolint with reviewdog 🐶

depup release GitHub release (latest SemVer) action-bumpr supported

This action runs hadolint with reviewdog on pull requests to lint Dockerfile and validate inline bash.

Examples

With github-pr-check

By default, with reporter: github-pr-check an annotation is added to the line:

Example comment made by the action, with github-pr-check

With github-pr-review

With reporter: github-pr-review a comment is added to the Pull Request Conversation:

Example comment made by the action, with github-pr-review

Inputs

github_token

Optional. ${{ github.token }} is used by default.

hadolint_flags

Optional. Pass hadolint flags:

with:
  hadolint_flags: --thrusted-repository docker.io

hadolint_ignore

Optional. Pass hadolint rules to ignore them:

with:
  hadolint_ignore: DL3009 DL3008

tool_name

Optional. Tool name to use for reviewdog reporter. Useful when running multiple actions with different config.

exclude

Optional. List of folders and files to exclude from checking.

Use /%FOLDER%/* to exclude whole folder or %FILENAME% to exclude certain files.

Note that you can use wildcard to exclude certain file extensions, like Dockerfile.* will exclude Dockerfile.dev, but will not exclude Dockerfile.

You can combine those rules as you wish (i.e. exclude certain files from certain folders only):

with:
  exclude: |
    /vendor/*
    Dockerfile.*

level

Optional. Report level for reviewdog [info, warning, error]. It's same as -level flag of reviewdog.

reporter

Optional. Reporter of reviewdog command [github-pr-check, github-pr-review]. The default is github-pr-check.

filter_mode

Optional. Filtering mode for the reviewdog command [added, diff_context, file, nofilter]. Default is added.

fail_on_error

Optional. Exit code for reviewdog when errors are found [true, false] Default is false.

reviewdog_flags

Optional. Additional reviewdog flags.

Example usage

name: reviewdog
on: [pull_request]
jobs:
  hadolint:
    name: runner / hadolint
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v1
      - name: hadolint
        uses: reviewdog/action-hadolint@v1
        with:
          reporter: github-pr-review # Default is github-pr-check

Sponsor

Sponsored by Evrone

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].