actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

support ignore list in actionlint.yaml

Open zvif-orca opened this issue 3 years ago • 7 comments

Required Functionality actionlint may require some customization when deployed into existing project Adding the ignore errors manually to a long command is not user friendly

Proposed Solution Add support for ignore list in actionlint.yaml to keep things neat

zvif-orca avatar Sep 20 '22 11:09 zvif-orca

Question: Why -ignore is not sufficient for your use case?

rhysd avatar Sep 20 '22 12:09 rhysd

If you mean to the cli argument - it is sufficient for my case It is just that I prefer to maintain the ignore list of in actionlint.yaml instead of maintaining a long command I followed the docs and from what I understand it is currently not supported, if this is the case - it would be nice to have

zvif-orca avatar Sep 20 '22 12:09 zvif-orca

I'm trying to keep config file as small as possible so let me consider whether it should be configured in the file.

rhysd avatar Sep 27 '22 00:09 rhysd

I would love to vote for stuff like this in the config file, as well. The reason is that I would like to run the tool in at least 3 different contexts - in my editor, at the command line and in CI. Having a single source of truth for the configuration options across those runs will make keeping them in sync much easier.

ryanking avatar Oct 15 '22 02:10 ryanking

As a current workaround, it's convenient to run it via a wrapper bash script.

#!/bin/bash
# ./scripts/actionlint

#  https://www.gnu.org/software/bash/manual/bash.html#index-_0040
actionlint -ignore 'some 1' -ignore 'some 2' "$@" 
chmod +x scripts/actionlint
./scripts/actionlint -no-color

u-yas avatar Aug 22 '23 15:08 u-yas

I have similiar requirement. Instead of maintaining separate Bash scripts to bypass these linting errors, I would prefer to configure my actionlint.yml file to explicitly ignore these specific errors. This approach will streamline my workflow by reducing the need for additional scripting and focusing on the essential aspects of my GitHub Actions.

rubarcelk avatar Jul 11 '24 17:07 rubarcelk