Skip to content

Commit

Permalink
ci: replace PAT with ORG_REPO_TOKEN (#6806)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 authored May 29, 2024
1 parent dca5029 commit c4741b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.ORG_REPO_TOKEN }}
target-branch: ${{ github.ref_name }}

manual-release-please:
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Release Please
run: |
release-please release-pr --repo-url=${{ github.server_url }}/${{ github.repository }} \
--token=${{ secrets.PAT }} \
--token=${{ secrets.ORG_REPO_TOKEN }} \
--release-as=${{ github.event.inputs.version }} \
--target-branch=${{ github.ref_name }}
Expand All @@ -55,7 +55,7 @@ jobs:
if: ${{ steps.extract_info.outputs.version }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PAT }}
github-token: ${{ secrets.ORG_REPO_TOKEN }}
script: |
await github.rest.git.createRef({
owner: context.repo.owner,
Expand All @@ -71,7 +71,7 @@ jobs:
if: ${{ steps.extract_info.outputs.pr_number }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PAT }}
github-token: ${{ secrets.ORG_REPO_TOKEN }}
script: |
const prNumber = parseInt('${{ steps.extract_info.outputs.pr_number }}', 10);
github.rest.issues.removeLabel({
Expand Down

0 comments on commit c4741b0

Please sign in to comment.