Skip to content

A local-first personal finance app

fix zizmor issues with release workflows (#7908)

Matt Fiddamanbef27433b8ac
diff --git a/.github/workflows/cut-release-branch.yml b/.github/workflows/cut-release-branch.yml
index 39577bbf83..2e542c794e 100644
--- a/.github/workflows/cut-release-branch.yml
+++ b/.github/workflows/cut-release-branch.yml
@@ -30,6 +30,7 @@ jobs:
ref: master
fetch-depth: 0
token: ${{ secrets.ACTIONS_UPDATE_TOKEN }}
+ persist-credentials: true
- name: Set up environment
uses: ./.github/actions/setup
diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index fc8cf7af53..8a8edc6279 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -6,9 +6,7 @@ on:
branches:
- release
-permissions:
- contents: write
- pull-requests: read
+permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -22,6 +20,8 @@ jobs:
&& startsWith(github.head_ref, 'release-notes/') == false
runs-on: ubuntu-latest
environment: pr-automation
+ permissions:
+ contents: read
steps:
- name: Check if triggered by bot
id: bot-check
@@ -71,6 +71,9 @@ jobs:
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment: release
+ permissions:
+ contents: write
+ pull-requests: read
steps:
- name: Resolve version
id: version
diff --git a/upcoming-release-notes/7908.md b/upcoming-release-notes/7908.md
new file mode 100644
index 0000000000..e5cf88281a
--- /dev/null
+++ b/upcoming-release-notes/7908.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [matt-fidd]
+---
+
+Fix zizmor issues with release workflows