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.
This commit is contained in:
parent
fc19ff321a
commit
09b233746c
1 changed files with 2 additions and 0 deletions
2
.github/workflows/triage.yml
vendored
2
.github/workflows/triage.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue