hadolint / hadolint-action

GitHub action for Hadolint, A Dockerfile linting tool
MIT License
192 stars 50 forks source link

Problem matcher picks up issues that were ignored in the config file #76

Open lukasz-mitka opened 1 year ago

lukasz-mitka commented 1 year ago

Scenario:

  1. Create config file with some ignores
  2. Have a Dockerfile with some issues that should be ignored.
  3. Run hadolint/hadolint-action
  4. Job succeeds as findings are ignorred
  5. hadolint still prints findings to stdout
  6. Problem matcher picks them up and reports as error in GitHub UI

It's inconsistent and can be misleading. I'd like that problem matcher would skip the ignored findings. Would require change to problem matcher or maybe hadolint.