Skip to content

Commit f477100

Browse files
author
Sven Siegmund
committed
refactor: do not fallback to GH_API_TOKEN, only use CI_STARTER_GH_API_TOKEN
1 parent a22463a commit f477100

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ jobs:
7171
- name: Test | Run pytest
7272
run: ${{ inputs.run-test-command }}
7373
env:
74-
GH_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
CI_STARTER_GH_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575

src/ci_starter/action.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def header(self) -> dict[str, str]:
7070
}
7171
if self.TOKEN:
7272
result.update(Authorization=f"Bearer {self.TOKEN}")
73-
elif token := getenv("GH_API_TOKEN"):
74-
result.update(Authorization=f"Bearer {token}")
7573
return result
7674

7775
def __repr__(self) -> str:

0 commit comments

Comments
 (0)