Skip to content

Commit

Permalink
fixup! 🔐 Use secrets.GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Nov 7, 2024
1 parent a3fa92c commit 07cceb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/match_target_repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Update Repository URL
on:
pull_request:

permissions:
contents: write

jobs:
update-repo-url:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/[email protected]
Expand All @@ -17,7 +18,7 @@ jobs:
GITHUB_BASE_LOGIN: ${{ github.event.pull_request.base.repo.owner.login }}
GITHUB_BASE_REPO_NAME: ${{ github.event.pull_request.base.repo.name }}
GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_REF: ${{ github.head_ref }}
run: |
TARGET_REPO_URL="https://github.com/${GITHUB_BASE_LOGIN}/${GITHUB_BASE_REPO_NAME}"
Expand Down

0 comments on commit 07cceb0

Please sign in to comment.