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 0cb76ae commit de3b04f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/create_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,16 @@ jobs:
case "${advisory:?}" in
https://github.com/advisories/GHSA-*|GHSA-*)
ty=npm
advisory_id="${advisory##*/}"
advisory_url="https://github.com/advisories/${advisory_id:?}"
advisory_json='"advisory": '"$(to_json "${advisory_url:?}")"
;;
ty=npm; advisory_domain=github.com;;
https://rustsec.org/advisories/RUSTSEC-*|RUSTSEC-*)
ty=cargo
advisory_id="${advisory##*/}"
advisory_url="https://rustsec.org/advisories/${advisory_id:?}"
advisory_json='"advisory": '"$(to_json "${advisory_id:?}")"
;;
ty=cargo; advisory_domain=rustsec.org;;
*) echo "ERROR: invalid advisory format" >&2; exit 2;;
esac
advisory_id="${advisory##*/}"
advisory_url="https://${advisory_domain:?}/advisories/${advisory_id:?}"
advisory_json='"advisory": '"$(to_json "${advisory_url:?}")"
case "${issue:?}" in
https://github.com/brave/*/issues/*|[0-9]*)
issue_id="${issue##*/}"
Expand Down

0 comments on commit de3b04f

Please sign in to comment.