Skip to content

Commit 1e8c54d

Browse files
committed
Replace PAT with default GITHUB_TOKEN
A PAT isn't needed for either of these Actions.
1 parent 88a7c5e commit 1e8c54d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/generate-references.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ jobs:
77
docs-generation:
88
name: Generate references
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012
steps:
1113
- name: Checkout the repository
1214
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1315
with:
1416
fetch-depth: 0
15-
token: ${{ secrets.POSTHOG_BOT_PAT }}
1617

1718
- name: Set up Python
1819
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515
env:
1616
TWINE_USERNAME: __token__
1717
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
18+
permissions:
19+
contents: write
1820
steps:
1921
- name: Checkout the repository
2022
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
2123
with:
2224
fetch-depth: 0
23-
token: ${{ secrets.POSTHOG_BOT_PAT }}
2425

2526
- name: Set up Python
2627
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
@@ -44,8 +45,6 @@ jobs:
4445

4546
- name: Create GitHub release
4647
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_PAT }}
4948
with:
5049
tag_name: v${{ env.REPO_VERSION }}
5150
release_name: ${{ env.REPO_VERSION }}

0 commit comments

Comments
 (0)