Skip to content

Instantly share code, notes, and snippets.

@ogazitt
Created January 17, 2023 00:04
Show Gist options
  • Save ogazitt/315728a13a9b964f81e6cbd18b39faf9 to your computer and use it in GitHub Desktop.
Save ogazitt/315728a13a9b964f81e6cbd18b39faf9 to your computer and use it in GitHub Desktop.
OPA config for running an OCI image in GHCR
services:
ghcr-registry:
url: https://ghcr.io
type: oci
credentials:
bearer:
scheme: "Bearer"
token: "<PAT>"
bundles:
authz:
service: ghcr-registry
resource: ghcr.io/<org>/policy-template:1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment