Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix chainlink ignoreFile flag being ignored (#1933)
## Type of change Fix a bug in chainlink ### What should this PR do? Chainlink's ignoreFile flag value is currently used before being parsed, ignoring whatever flag value was passed in and always using default. This PR moves ignoreFile parsing after flag parsing so parsing comes before usage. ### Why are we making this change? Discovered a bunch of "localhost" urls being flagged in an images-private run https://github.com/chainguard-images/images-private/actions/runs/12058742634/job/33626025490?pr=6270 although it is in the specified ignoreFile https://github.com/chainguard-images/images-private/blob/main/chainlink-ignore.json investigated and landed here ### What are the acceptance criteria? This fixes a bug. ### How should this PR be tested? ``` cd /tools/chainlink go run . -method GET -checkAll -hostname edu.chainguard.dev -ignoreFile /<code_location>/images-private/chainlink-ignore.json -contentDir /<code_location>/images-private/images/harbor/ -resultsFile ./res.json ```
- Loading branch information