From 060b974d9f85f93b90625376a4f839ba5a263d95 Mon Sep 17 00:00:00 2001 From: Jerry Duffy Date: Fri, 6 Nov 2026 11:39:48 -0500 Subject: [PATCH] Add CODEOWNERS and gate Maven publish workflows by environment Adds a CODEOWNERS file for the java team and wires the snapshot and release publish workflows to the maven-staging-publish-ungated and maven-prod-publishing-gated GitHub environments, respectively. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/publish_main_snapshot.yml | 1 + .github/workflows/publish_release.yml | 1 + CODEOWNERS | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 CODEOWNERS diff --git a/.github/workflows/publish_main_snapshot.yml b/.github/workflows/publish_main_snapshot.yml index 391e203..7d80213 100644 --- a/.github/workflows/publish_main_snapshot.yml +++ b/.github/workflows/publish_main_snapshot.yml @@ -9,6 +9,7 @@ permissions: jobs: build: + environment: maven-staging-publish-ungated runs-on: ubuntu-latest steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4 diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 1b93a56..8bd96f3 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -10,6 +10,7 @@ permissions: jobs: build: + environment: maven-prod-publishing-gated runs-on: ubuntu-latest steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4 diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..8af26fc --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +# Default owner for the repo. Only people on the team can approve PRs and perform other +# repo operations. +* @newrelic/java