feat: add option to specify one or more grype config files - #589
Conversation
Signed-off-by: Sam Adams <sam.adams@superpayments.com>
aa7bf45 to
373e863
Compare
|
Similar PR that didn't make it: |
Signed-off-by: Sam Adams <sam.adams@superpayments.com>
|
Hi @sam-super, I should note there are currently 2 ways to use Grype configuration in scan action:
While I'm not necessarily opposed to specifying a grype configuration file, I think a small part of the issue is that there is a mismatch between some of the configuration for the scan action and grype itself. But sbom-action does support a config file, so if we accept this it would need to use the same options |
|
Hi @kzantow, For context we have a global grype config file and a local one, and currently we can't use both at the same time (which is the desired state). I originally tried passing The individual grype env vars are unmaintainable as we are largely using this for ignores (which are a bit too complex). So our only real option left is to merge the two configs ourselves (and then replace I confess i don't really understand why the Thanks for responding!
|
Signed-off-by: Sam Adams <sam.adams@superpayments.com>
d57b36e to
907382b
Compare
|
FWIW have changed to |
|
Thanks @kzantow ! |
* main: (21 commits) chore(deps): bump @actions/cache from 5.0.3 to 5.0.5 (anchore#592) chore(deps): bump @actions/tool-cache from 3.0.0 to 3.0.1 (anchore#593) chore(deps): update Grype to v0.107.1 (anchore#594) feat: add option to specify one or more grype config files (anchore#589) chore(deps): bump fast-xml-parser from 5.3.3 to 5.3.4 (anchore#590) chore(deps): bump release-drafter/release-drafter from 6.1.0 to 6.2.0 (anchore#587) chore(deps): update Grype to v0.107.0 (anchore#588) chore(deps-dev): bump prettier from 3.8.0 to 3.8.1 (anchore#584) chore(deps): bump peter-evans/create-pull-request from 8.0.0 to 8.1.0 (anchore#585) chore(deps-dev): bump tar from 7.5.6 to 7.5.7 (anchore#586) chore(deps): update Grype to v0.106.0 (anchore#583) chore(deps): bump zizmorcore/zizmor-action from 0.3.0 to 0.4.1 (anchore#582) chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 (anchore#581) chore(deps): bump lodash from 4.17.21 to 4.17.23 (anchore#580) chore: tweak release drafter author and husky (anchore#579) chore: update release drafter permissions (anchore#578) chore: update release drafter to include appropriate dependencies (anchore#577) chore(deps): bump @actions/tool-cache from 2.0.2 to 3.0.0 (anchore#567) chore(deps): bump @actions/cache from 5.0.1 to 5.0.2 (anchore#568) chore(deps): bump @actions/core from 2.0.1 to 2.0.2 (anchore#569) ... Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
Fixes: #217