Skip to content

Commit 5927399

Browse files
committed
ci: Use permissions and regular GitHub token instead of PAT
1 parent c3d457d commit 5927399

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/pull_strings.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
pull:
1010
name: Pull strings
11+
permissions:
12+
contents: write
1113
runs-on: ubuntu-latest
1214
steps:
1315
- name: Checkout
@@ -30,6 +32,6 @@ jobs:
3032
github_user_name: revanced-bot
3133
github_user_email: [email protected]
3234
env:
33-
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3436
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
3537
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

.github/workflows/push_strings.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ jobs:
2424
config: crowdin.yml
2525
upload_sources: true
2626
env:
27-
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
2827
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
2928
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
release:
1212
name: Release
13+
permissions:
14+
contents: write
15+
packages: write
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout
@@ -46,5 +49,5 @@ jobs:
4649

4750
- name: Release
4851
env:
49-
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5053
run: npm exec semantic-release

0 commit comments

Comments
 (0)