Skip to content

Commit 03f4670

Browse files
committed
use github_token
1 parent f7c6eb9 commit 03f4670

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/move_card.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ jobs:
268268
uses: ./.github/workflows/quick_pr.yml
269269
with:
270270
DEFAULT_PROJECT: "t8code's Issue Landing page"
271-
secrets:
272-
PAT: ${{ secrets.T8DDY_PROJECTS }}
273271

274272
# After the issue has been created by open_issue_for_quick_pr, move the card to Needs Review
275273
move_quick_pr_issue_to_Needs_Review:

.github/workflows/quick_pr.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ on:
2828
description: 'The default project to use for the issue'
2929
required: true
3030
default: ''
31-
secrets:
32-
PAT:
33-
required: true
3431
outputs:
3532
ISSUE_NUMBER:
3633
description: 'The number of the issue that was created'
@@ -39,15 +36,17 @@ on:
3936
jobs:
4037
create_issue:
4138
runs-on: ubuntu-latest
39+
permissions:
40+
issues: write
41+
pull-requests: write
42+
contents: read
4243
outputs:
4344
ISSUE_NUMBER: ${{ steps.create_issue_and_output_number.outputs.ISSUE_NUMBER }}
4445
steps:
4546
- uses: actions/checkout@v5
4647
with:
4748
fetch-depth: 0
4849

49-
- name: "Set up environment"
50-
run: echo "GH_TOKEN=${{ secrets.PAT }}" >> $GITHUB_ENV
5150

5251
- name: "Create Issue"
5352
id: create_issue_and_output_number
@@ -88,6 +87,8 @@ jobs:
8887
ISSUE_NUMBER=$(echo "$new_issue_url" | awk -F'/' '{print $NF}')
8988
echo "ISSUE_NUMBER=$ISSUE_NUMBER"
9089
echo "ISSUE_NUMBER=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
90+
env:
91+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9192
9293
- name: "Link Issue to PR"
9394
id: link_issue

0 commit comments

Comments
 (0)