From 665dd51eb2b3b79d3ffccb6cef64d544aa5e7206 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Wed, 16 Apr 2025 12:45:16 -0400 Subject: [PATCH] chore: add publish env (#1420) * chore: add publish env Signed-off-by: Todd Baert * Update release.yml Signed-off-by: Todd Baert * Update merge.yml Signed-off-by: Todd Baert --------- Signed-off-by: Todd Baert --- .github/workflows/merge.yml | 4 +++- .github/workflows/release.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 72a3a3c3..edb3c6ef 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -9,13 +9,15 @@ name: on-merge on: push: - branches: [ master, main ] + branches: + - main permissions: contents: read jobs: build: + environment: publish runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5c1a2e7..7359285d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: release-please: + environment: publish permissions: contents: write # for google-github-actions/release-please-action to create release commit pull-requests: write # for google-github-actions/release-please-action to create release PR