Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch .regal.json capabilites files for Enterprise OPA #1238

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion build/do.rq
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fetch_eopa_caps if {
not eopa_caps_tree[p]

# construct the URL to fetch the content from
r := rq.template("https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/capabilities/{{.tag}}.json", {"tag": t})
r := rq.template("https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/capabilities/{{.tag}}.regal.json", {"tag": t})
Copy link
Member

@srenatus srenatus Nov 5, 2024

Choose a reason for hiding this comment

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

This will fail for old tags, iirc

Copy link
Member Author

Choose a reason for hiding this comment

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

It should not have, since the test to fetch an old tag is based on the file on disk which is renamed to the format as before. However, sounds like we won't be needing now!

}

print(sprintf("fetching %d capabilities files missing locally", [count(missing_locally)]))
Expand Down
Loading