Skip to content

Commit b56adbb

Browse files
committed
Use the built-in GITHUB_TOKEN rather than relying on a PAT
1 parent 5271086 commit b56adbb

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Automerge
2020
uses: pascalgn/automerge-action@v0.13.1
2121
env:
22-
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
22+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2323
MERGE_LABELS: "merge,!work in progress,!wip"
2424
MERGE_REMOVE_LABELS: "merge"
2525
MERGE_METHOD: "merge"
@@ -32,4 +32,4 @@ jobs:
3232
with:
3333
branches: "!master, !production, *"
3434
env:
35-
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
35+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/cla.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
if: (github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
1313
uses: cla-assistant/github-action@master
1414
env:
15-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
16-
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
15+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
16+
PERSONAL_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1717
with:
1818
path-to-signatures: cla-signatures.json
1919
path-to-document: https://github.com/koj-co/.github/blob/master/CLA.md

.github/workflows/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
steps:
1111
- uses: koj-co/dependabot-pr-action@master
1212
with:
13-
token: ${{ secrets.GH_PAT }}
13+
token: "${{ secrets.GITHUB_TOKEN }}"
1414
merge-minor: true
1515
merge-patch: true

.github/workflows/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
- name: Label all PRs
1010
uses: actions/labeler@master
1111
with:
12-
repo-token: "${{ secrets.GH_PAT }}"
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1313
- name: Label approved PRs
1414
uses: koj-co/label-approved-action@master
1515
with:
1616
labels: "merge"
1717
env:
18-
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
18+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/node.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Release
4040
run: npx semantic-release
4141
env:
42-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
42+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4343
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4444
GIT_AUTHOR_NAME: "Koj Bot"
4545
GIT_AUTHOR_EMAIL: "bot@koj.co"
@@ -50,15 +50,15 @@ jobs:
5050
uses: jonabc/licensed-ci@v1
5151
with:
5252
config_file: .github/licensed.yml
53-
github_token: ${{ secrets.GH_PAT }}
53+
github_token: "${{ secrets.GITHUB_TOKEN }}"
5454
user_name: "KojBot"
5555
user_email: "bot@koj.co"
5656
commit_message: ":page_facing_up: Update dependency license file [skip ci]"
5757
- name: Add PR comment
5858
uses: actions/github-script@v3
5959
if: always() && steps.licensed.outputs.pr_number
6060
with:
61-
github-token: ${{ secrets.GH_PAT }}
61+
github-token: "${{ secrets.GITHUB_TOKEN }}"
6262
script: |
6363
github.issues.createComment({
6464
...context.repo,

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/github-script@v3
5959
id: should-pr
6060
with:
61-
github-token: ${{ secrets.GH_PAT }}
61+
github-token: "${{ secrets.GITHUB_TOKEN }}"
6262
script: |
6363
return
6464
context.payload.ref.startsWith("refs/heads/feature") ||
@@ -68,6 +68,6 @@ jobs:
6868
uses: vsoch/pull-request-action@1.0.15
6969
if: always() && steps.should-pr.outputs.result
7070
env:
71-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
71+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
7272
PULL_REQUEST_BRANCH: "master"
7373
PULL_REQUEST_REVIEWERS: "AnandChowdhary"

.github/workflows/release-scheduler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- name: Run release-scheduler
1111
uses: koj-co/release-scheduler@master
1212
env:
13-
GH_PAT: ${{ secrets.GH_PAT }}
13+
GH_PAT: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/stale@v3
1010
with:
11-
repo-token: ${{ secrets.GH_PAT }}
11+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1212
stale-issue-message: "⚠️ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week."
1313
stale-pr-message: "⚠️ This PR has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week."
1414
days-before-stale: 60

0 commit comments

Comments
 (0)