Skip to content

Commit e6d1d1c

Browse files
removed ALTERNATIVE_GITHUB_TOKEN from github workflows (#345)
1 parent 818dc22 commit e6d1d1c

File tree

9 files changed

+9
-30
lines changed

9 files changed

+9
-30
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Checks
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

@@ -141,7 +138,7 @@ jobs:
141138
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
142139
runs-on: ubuntu-latest
143140
env:
144-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
141+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145142
strategy:
146143
fail-fast: false
147144
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

.github/workflows/merge-gate.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Merge-Gate
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

.github/workflows/report.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ name: Status Report
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

118
Report:
129
runs-on: ubuntu-latest
1310
env:
14-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1512

1613
steps:
1714
- name: SCM Checkout

.github/workflows/slow-checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Slow-Checks
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

@@ -21,7 +18,7 @@ jobs:
2118
# See project settings on GitHub (Settings / Environments / manual-approval).
2219
environment: manual-approval
2320
env:
24-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2522
strategy:
2623
fail-fast: false
2724
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

doc/changes/unreleased.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
## 🔩 Internal
2323
* Relocked dependencies
2424
* Update referenced github actions
25+
26+
## ⚒️ Refactorings
27+
* [#339](https://github.com/exasol/python-toolbox/issues/339): Secret ALTERNATIVE_GITHUB_TOKEN removed from GitHub workflows

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Checks
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

@@ -147,7 +144,7 @@ jobs:
147144
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
148145
runs-on: ubuntu-latest
149146
env:
150-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
147+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151148
strategy:
152149
fail-fast: false
153150
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

exasol/toolbox/templates/github/workflows/merge-gate.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Merge-Gate
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

exasol/toolbox/templates/github/workflows/report.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ name: Status Report
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

118
report:
129
runs-on: ubuntu-latest
1310
env:
14-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1512

1613
steps:
1714
- name: SCM Checkout

exasol/toolbox/templates/github/workflows/slow-checks.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Slow-Checks
22

33
on:
44
workflow_call:
5-
secrets:
6-
ALTERNATIVE_GITHUB_TOKEN:
7-
required: false
85

96
jobs:
107

@@ -21,7 +18,7 @@ jobs:
2118
# See project settings on GitHub (Settings / Environments / manual-approval).
2219
environment: manual-approval
2320
env:
24-
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2522
strategy:
2623
fail-fast: false
2724
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

0 commit comments

Comments
 (0)