Skip to content

Commit

Permalink
Merge pull request #1 from planningcenter/sb/support-ignore-list
Browse files Browse the repository at this point in the history
🙉 Add support for an `ignore_list` input
  • Loading branch information
shanebonham authored Dec 18, 2024
2 parents 89908b8 + 90e845a commit 92e2428
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ See:

## Inputs

None.
| Name | Description | Required | Default |
|:-:|:-:|:-:|:-:|
| `ignore_list` | "Space-separated list of CVEs to ignore (e.g., CVE-2023-26141 CVE-2021-41182 CVE-2021-41183)" | false | "" |

## Outputs

Expand Down
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: "Run Bundler Audit"
description: "Runs bundle-audit check --update and outputs results."

inputs:
ignore_list:
description: "Space-separated list of CVEs to ignore (e.g., CVE-2023-26141 CVE-2021-41182 CVE-2021-41183)"
required: false
default: ""

outputs:
has_vulnerabilities:
description: "True if vulnerabilities are found, false otherwise"
Expand All @@ -25,7 +31,7 @@ runs:
- name: Run Bundler Audit
id: audit
run: |
bundle-audit check --update > audit_output.txt || true
bundle-audit check --update --ignore ${{ inputs.ignore_list }} > audit_output.txt || true
shell: bash

- name: Check for Vulnerabilities
Expand Down

0 comments on commit 92e2428

Please sign in to comment.