From 09b233746cdc009ebc49dccb4b0114376efc53b9 Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Thu, 6 Mar 2025 11:12:56 -0800 Subject: [PATCH 1/3] Add cli-discuss-automation environment to triage.md Previously, we were getting the token from repository secrets. We have moved the token to its own environment secret in the cli-discuss-automation environment. It is in its own environment so that we don't inject our other secrets into this workflow as we don't need them here. --- .github/workflows/triage.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 849beebad..3ed27a5f2 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -11,6 +11,7 @@ env: TARGET_REPO: github/cli jobs: issue: + environment: cli-discuss-automation runs-on: ubuntu-latest if: github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'discuss' steps: @@ -42,6 +43,7 @@ jobs: pull_request: runs-on: ubuntu-latest + environment: cli-discuss-automation if: github.event_name == 'pull_request_target' && github.event.action == 'labeled' && github.event.label.name == 'discuss' steps: - name: Create issue based on source pull request From 824acc86dd86a745b3014bd5353b844959f3591e Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Thu, 6 Mar 2025 11:20:39 -0800 Subject: [PATCH 2/3] Add environment to prauto and issueauto workflows --- .github/workflows/issueauto.yml | 1 + .github/workflows/prauto.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/issueauto.yml b/.github/workflows/issueauto.yml index 40c4b36e7..1322f12ef 100644 --- a/.github/workflows/issueauto.yml +++ b/.github/workflows/issueauto.yml @@ -10,6 +10,7 @@ permissions: jobs: issue-auto: runs-on: ubuntu-latest + environemnt: production steps: - name: label incoming issue env: diff --git a/.github/workflows/prauto.yml b/.github/workflows/prauto.yml index b7ed90183..f9d5ea9e6 100644 --- a/.github/workflows/prauto.yml +++ b/.github/workflows/prauto.yml @@ -11,6 +11,7 @@ permissions: jobs: pr-auto: runs-on: ubuntu-latest + environment: production steps: - name: lint pr env: From e0533f9f73473daababa8f8169f40c9eeb5a4e28 Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Fri, 7 Mar 2025 12:02:20 -0800 Subject: [PATCH 3/3] Change issueauto and prauto actions to use the cli-automation env --- .github/workflows/issueauto.yml | 2 +- .github/workflows/prauto.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issueauto.yml b/.github/workflows/issueauto.yml index 1322f12ef..cfdcff764 100644 --- a/.github/workflows/issueauto.yml +++ b/.github/workflows/issueauto.yml @@ -10,7 +10,7 @@ permissions: jobs: issue-auto: runs-on: ubuntu-latest - environemnt: production + environment: cli-automation steps: - name: label incoming issue env: diff --git a/.github/workflows/prauto.yml b/.github/workflows/prauto.yml index f9d5ea9e6..40dfee846 100644 --- a/.github/workflows/prauto.yml +++ b/.github/workflows/prauto.yml @@ -11,7 +11,7 @@ permissions: jobs: pr-auto: runs-on: ubuntu-latest - environment: production + environment: cli-automation steps: - name: lint pr env: