-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
BASE_URL='https://access.redhat.com/security/data/meta/v1/repository-to-cpe.json' | ||
|
||
export COMMENT=' | ||
This file is automatically generated by hack/update-repository-to-cpe.sh. Do not update it directly. | ||
' | ||
|
||
curl -L "${BASE_URL}" | \ | ||
yq '.data | | ||
[to_entries[].key] as $repos | | ||
$repos + load("hack/extra_rpm_repositories.yml").extras | sort | unique as $repos | | ||
$repos - load("hack/suppressed_rpm_repositories.yml").suppressed | sort | unique as $repos | | ||
{"rule_data": {"known_rpm_repositories": $repos}} | | ||
. head_comment=env(COMMENT)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Update this list for any repos that we be removed from the list of known repositories. | ||
# | ||
# As of KONFLUX-6218, put repositories here that we don't want people to use even though they do appear in the cpe mapping file. | ||
|
||
suppressed: | ||
- ubi-9-appstream-rpms | ||
- ubi-9-baseos-rpms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters