Use @docs-bot for deployment environment cleanup (#21441)
* Restrict stale app cleanup to GITHUB_TOKEN * Use DOCS_BOT token for stale environment cleanup
This commit is contained in:
@@ -15,7 +15,6 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
deployments: write
|
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -40,7 +39,7 @@ jobs:
|
|||||||
run: script/remove-stale-staging-apps.js
|
run: script/remove-stale-staging-apps.js
|
||||||
env:
|
env:
|
||||||
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
|
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
remove_stale_staging_envs:
|
remove_stale_staging_envs:
|
||||||
name: Remove stale staging environments
|
name: Remove stale staging environments
|
||||||
@@ -61,5 +60,5 @@ jobs:
|
|||||||
- name: Run script
|
- name: Run script
|
||||||
run: script/remove-stale-staging-envs.js
|
run: script/remove-stale-staging-envs.js
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
|
GITHUB_TOKEN: ${{ secrets.DOCS_BOT }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
|
|||||||
Reference in New Issue
Block a user