Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wknapik committed Dec 11, 2024
1 parent 86f0f90 commit 0cb76ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
inputs:
advisory:
required: true
description: Advisory ID, or URL
description: Advisory ID, or URL (e.g. GHSA-123, or https://github.com/advisories/GHSA-123)
issue:
required: true
description: Issue URL
description: Issue URL (e.g. https://github.com/brave/brave-browser/issues/1)
comment:
required: false
description: Comment (optional)
Expand Down Expand Up @@ -42,13 +42,13 @@ jobs:
https://github.com/advisories/GHSA-*|GHSA-*)
ty=npm
advisory_id="${advisory##*/}"
advisory_url="${advisory%/GHSA-*}/${advisory_id:?}"
advisory_url="https://github.com/advisories/${advisory_id:?}"
advisory_json='"advisory": '"$(to_json "${advisory_url:?}")"
;;
https://rustsec.org/advisories/RUSTSEC-*|RUSTSEC-*)
ty=cargo
advisory_id="${advisory##*/}"
advisory_url="${advisory%/RUSTSEC-*}/${advisory_id:?}"
advisory_url="https://rustsec.org/advisories/${advisory_id:?}"
advisory_json='"advisory": '"$(to_json "${advisory_id:?}")"
;;
*) echo "ERROR: invalid advisory format" >&2; exit 2;;
Expand Down

0 comments on commit 0cb76ae

Please sign in to comment.