Skip to content

Commit f56229f

Browse files
[PETOSS-829] Use correct auth for release building (#765)
* [PETOSS-829] Add token * [PETOSS-829] Use standard token
1 parent 786abe3 commit f56229f

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/create-github-pr.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,7 @@ jobs:
1515
- name: Checkout Repository
1616
uses: actions/checkout@v4
1717
with:
18-
ref: "master"
19-
20-
- name: Install get-access-token dependencies
21-
run: npm ci
22-
working-directory: ${{ github.workspace }}/.github/get-access-token
23-
24-
- name: Get github app access token
25-
id: get_access_token
26-
uses: actions/create-github-app-token@v2
27-
with:
28-
app-id: ${{ secrets.XERO_PUBLIC_BOT_APP_ID}}
29-
private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }}
30-
owner: xero-internal
31-
repositories: xeroapi-sdk-codegen
18+
fetch-depth: 0
3219

3320
- name: Fetch Latest release number
3421
id: get_latest_release_number
@@ -37,7 +24,7 @@ jobs:
3724
echo "Latest release version is - $latest_version"
3825
echo "releaseVersion=$latest_version" >> $GITHUB_OUTPUT
3926
env:
40-
GH_TOKEN: ${{steps.get_access_token.outputs.token}}
27+
GH_TOKEN: ${{ github.token }}
4128

4229
- name: Set up branch name
4330
id: identify_branch_name
@@ -117,4 +104,4 @@ jobs:
117104
echo "PR is already up to date"
118105
fi
119106
env:
120-
GH_TOKEN: ${{steps.get_access_token.outputs.token}}
107+
GH_TOKEN: ${{ github.token }}

.github/workflows/create-github-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ jobs:
2929
- name: Perform release
3030
run: npx semantic-release --dry-run
3131
working-directory: ${{ github.workspace }}/.github/semantic-release
32+
env:
33+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)