A local-first personal finance app
[AI] Drop ACTIONS_UPDATE_TOKEN from release workflows (#8142)
Matiss Janis Aboltins27c6ded5a976
diff --git a/.github/workflows/cut-release-branch.yml b/.github/workflows/cut-release-branch.ymlindex 766c5cdc86..459c70c0ca 100644--- a/.github/workflows/cut-release-branch.yml+++ b/.github/workflows/cut-release-branch.yml@@ -24,13 +24,14 @@ jobs:if: github.repository_owner == 'actualbudget'runs-on: ubuntu-latestenvironment: release+ env:+ GH_TOKEN: ${{ github.token }}steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:ref: masterfetch-depth: 0- token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}persist-credentials: true- name: Set up environment@@ -54,8 +55,6 @@ jobs:- name: Determine previous tagid: prev_tag- env:- GH_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN || github.token }}run: |prev_tag=$(gh api "repos/${GITHUB_REPOSITORY}/releases/latest" --jq '.tag_name' 2>/dev/null) || prev_tag=""echo "tag=${prev_tag:-master}" >> "$GITHUB_OUTPUT"@@ -75,7 +74,6 @@ jobs:- name: Validate target versionenv:- GH_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN }}VERSION: ${{ steps.version.outputs.version }}TYPE: ${{ steps.version.outputs.type }}shell: bash@@ -106,7 +104,6 @@ jobs:- name: Open release-notes branch and PRuses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1with:- token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}commit-message: 'π (${{ steps.version.outputs.version }})'title: 'π (${{ steps.version.outputs.version }})'body: |@@ -120,7 +117,6 @@ jobs:- name: Update release branchenv:- GH_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN }}VERSION: ${{ steps.version.outputs.version }}TYPE: ${{ steps.version.outputs.type }}shell: bashdiff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.ymlindex 79879844b7..18cd71af7a 100644--- a/.github/workflows/release-notes.yml+++ b/.github/workflows/release-notes.yml@@ -5,6 +5,11 @@ on:push:branches:- release+ workflow_run: # zizmor: ignore[dangerous-triggers]+ workflows: ['Cut release branch']+ types:+ - completed+ branches: [master]permissions: {}@@ -67,7 +72,10 @@ jobs:uses: ./.github/actions/release-notes/checkgenerate-release-notes:- if: github.event_name == 'push'+ if: >-+ github.event_name == 'push'+ || (github.event_name == 'workflow_run'+ && github.event.workflow_run.conclusion == 'success')runs-on: ubuntu-latestenvironment: releasepermissions:@@ -77,7 +85,7 @@ jobs:- name: Resolve versionid: versionenv:- GH_TOKEN: ${{ secrets.ACTIONS_UPDATE_TOKEN || github.token }}+ GH_TOKEN: ${{ github.token }}run: |version=$(gh api "repos/${GITHUB_REPOSITORY}/contents/packages/desktop-client/package.json?ref=release" --jq '.content' | base64 -d | jq -r .version)echo "version=$version" >> "$GITHUB_OUTPUT"@@ -88,7 +96,6 @@ jobs:with:ref: ${{ steps.version.outputs.notes_branch }}fetch-depth: 0- token: ${{ secrets.ACTIONS_UPDATE_TOKEN || github.token }}persist-credentials: true- name: Generate release notesdiff --git a/upcoming-release-notes/8142.md b/upcoming-release-notes/8142.mdnew file mode 100644index 0000000000..8514a5bdda--- /dev/null+++ b/upcoming-release-notes/8142.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [MatissJanis]+---++Drop the `ACTIONS_UPDATE_TOKEN` PAT from the release workflows.