Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the built-in GITHUB_TOKEN rather than relying on a PAT #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Automerge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "merge,!work in progress,!wip"
MERGE_REMOVE_LABELS: "merge"
MERGE_METHOD: "merge"
Expand All @@ -32,4 +32,4 @@ jobs:
with:
branches: "!master, !production, *"
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
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'
uses: cla-assistant/github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PERSONAL_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
path-to-signatures: cla-signatures.json
path-to-document: https://github.com/koj-co/.github/blob/master/CLA.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
steps:
- uses: koj-co/dependabot-pr-action@master
with:
token: ${{ secrets.GH_PAT }}
token: "${{ secrets.GITHUB_TOKEN }}"
merge-minor: true
merge-patch: true
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- name: Label all PRs
uses: actions/labeler@master
with:
repo-token: "${{ secrets.GH_PAT }}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Label approved PRs
uses: koj-co/label-approved-action@master
with:
labels: "merge"
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6 changes: 3 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: "Koj Bot"
GIT_AUTHOR_EMAIL: "[email protected]"
Expand All @@ -50,15 +50,15 @@ jobs:
uses: jonabc/licensed-ci@v1
with:
config_file: .github/licensed.yml
github_token: ${{ secrets.GH_PAT }}
github_token: "${{ secrets.GITHUB_TOKEN }}"
user_name: "KojBot"
user_email: "[email protected]"
commit_message: ":page_facing_up: Update dependency license file [skip ci]"
- name: Add PR comment
uses: actions/github-script@v3
if: always() && steps.licensed.outputs.pr_number
with:
github-token: ${{ secrets.GH_PAT }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
github.issues.createComment({
...context.repo,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/github-script@v3
id: should-pr
with:
github-token: ${{ secrets.GH_PAT }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
return
context.payload.ref.startsWith("refs/heads/feature") ||
Expand All @@ -68,6 +68,6 @@ jobs:
uses: vsoch/[email protected]
if: always() && steps.should-pr.outputs.result
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PULL_REQUEST_BRANCH: "master"
PULL_REQUEST_REVIEWERS: "AnandChowdhary"
2 changes: 1 addition & 1 deletion .github/workflows/release-scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- name: Run release-scheduler
uses: koj-co/release-scheduler@master
env:
GH_PAT: ${{ secrets.GH_PAT }}
GH_PAT: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GH_PAT }}
repo-token: "${{ secrets.GITHUB_TOKEN }}"
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."
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."
days-before-stale: 60
Expand Down