From c8efaeca5f1bf1d3d84700097c39faa4cb61bfd6 Mon Sep 17 00:00:00 2001 From: Chris Mitchell Date: Fri, 31 Oct 2025 10:24:44 +1300 Subject: [PATCH 1/2] [PETOSS-829] Add token --- .github/workflows/create-github-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index ede6fd4f9..d796ebb8a 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -29,3 +29,5 @@ jobs: - name: Perform release run: npx semantic-release --dry-run working-directory: ${{ github.workspace }}/.github/semantic-release + env: + GH_TOKEN: ${{ github.token }} From 4ebc0a32a88a2ad5483ef647444ae5dfbb2b427d Mon Sep 17 00:00:00 2001 From: Chris Mitchell Date: Fri, 31 Oct 2025 10:26:32 +1300 Subject: [PATCH 2/2] [PETOSS-829] Use standard token --- .github/workflows/create-github-pr.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create-github-pr.yml b/.github/workflows/create-github-pr.yml index 749be16ba..8eb382d9b 100644 --- a/.github/workflows/create-github-pr.yml +++ b/.github/workflows/create-github-pr.yml @@ -15,20 +15,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 with: - ref: "master" - - - name: Install get-access-token dependencies - run: npm ci - working-directory: ${{ github.workspace }}/.github/get-access-token - - - name: Get github app access token - id: get_access_token - uses: actions/create-github-app-token@v2 - with: - app-id: ${{ secrets.XERO_PUBLIC_BOT_APP_ID}} - private-key: ${{ secrets.XERO_PUBLIC_BOT_KEY }} - owner: xero-internal - repositories: xeroapi-sdk-codegen + fetch-depth: 0 - name: Fetch Latest release number id: get_latest_release_number @@ -37,7 +24,7 @@ jobs: echo "Latest release version is - $latest_version" echo "releaseVersion=$latest_version" >> $GITHUB_OUTPUT env: - GH_TOKEN: ${{steps.get_access_token.outputs.token}} + GH_TOKEN: ${{ github.token }} - name: Set up branch name id: identify_branch_name @@ -117,4 +104,4 @@ jobs: echo "PR is already up to date" fi env: - GH_TOKEN: ${{steps.get_access_token.outputs.token}} + GH_TOKEN: ${{ github.token }}