Skip to content

Commit 4d30079

Browse files
Copilotbaynezy
andauthored
Add GH_TOKEN environment variable to all relevant workflows (#216)
* Initial plan * Add GH_TOKEN environment variable to all non-workflow_call workflows Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com> * Update CHANGELOG.md with entry for issue #215 Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com>
1 parent 5778a44 commit 4d30079

14 files changed

Lines changed: 40 additions & 0 deletions

.github/workflows/blocked-issue.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- created
1111
- edited
1212

13+
env:
14+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
1316
jobs:
1417
add-blocked-label:
1518
runs-on: ubuntu-latest

.github/workflows/branch-develop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- '.github/workflows/step-*.yml'
1414
workflow_dispatch:
1515

16+
env:
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
1619
jobs:
1720
get-version:
1821
uses: ./.github/workflows/step-version.yml

.github/workflows/branch-feature.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- '.github/workflows/step-*.yml'
1515
workflow_dispatch:
1616

17+
env:
18+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
1720
jobs:
1821
get-version:
1922
if: startsWith(github.head_ref, 'feature/') || github.head_ref == 'master'

.github/workflows/branch-hotfix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- master
88
workflow_dispatch:
99

10+
env:
11+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
1013
jobs:
1114
get-version:
1215
if: startsWith(github.head_ref, 'hotfix/')

.github/workflows/branch-master.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- master
77
workflow_dispatch:
88

9+
env:
10+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
912
jobs:
1013
get-version:
1114
uses: ./.github/workflows/step-version.yml

.github/workflows/branch-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- '.github/workflows/step-*.yml'
1616
workflow_dispatch:
1717

18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
1821
jobs:
1922
get-version:
2023
if: startsWith(github.head_ref, 'release/')

.github/workflows/completed-feature-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ develop ]
66
types: [closed]
77

8+
env:
9+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
811
jobs:
912
update-merged-issue-issues:
1013
if: github.event.pull_request.merged_by != '' && github.actor != 'dependabot[bot]' && startsWith(github.head_ref, 'feature/issue-')

.github/workflows/draft-new-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
description: 'The patch version you want to release.'
1414
required: true
1515

16+
env:
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
1619
jobs:
1720

1821
draft-new-release:

.github/workflows/gitstream.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
required: false
2929
default: ''
3030

31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
3134
jobs:
3235
gitStream:
3336
timeout-minutes: 5

.github/workflows/in-progress-feature-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- feature/issue-*
77

8+
env:
9+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
811
jobs:
912
update-in-progress-issues:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)