Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions hack/render-known-rpm-repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ This file is automatically generated by hack/update-repository-to-cpe.sh. Do not
'

curl -L "${BASE_URL}" | \
jq '
.data as $orig |
[.data | to_entries[] |
select(.key | test("__[0-9]+_DOT_") | not) |
select(.value.repo_relative_urls | any(test("/aus/|/eus/|/extended-eus/"))) |
.key as $key |
(.value.repo_relative_urls[] |
select(test("/aus/|/eus/|/extended-eus/")) |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also have e4s?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm likely going to drop this PR. It was discovered that the removal of these repos was an error on the SDEngine side. There's no agreed upon policy around when data should be removed at all if at all. So the data source has been restored and prodsec is discussing that

capture("/(?<major>[0-9]+)\\.(?<minor>[0-9]+)/") |
{key: "\($key)__\(.major)_DOT_\(.minor)", value: {}})] |
unique_by(.key) | from_entries as $generated |
{data: ($orig + $generated)}
' | \
yq '.data |
[to_entries[].key] as $repos |
$repos + load("hack/extra_rpm_repositories.yml").extras | sort | unique as $repos |
Expand Down
Loading