Skip to content

A local-first personal finance app

[AI] zizmor: add environment references to secret-consuming workflows (#7856)

Matiss Janis Aboltins1f101077d669
diff --git a/.github/workflows/ai-generated-release-notes.yml b/.github/workflows/ai-generated-release-notes.yml
index bf5290e932..cc8745f2bc 100644
--- a/.github/workflows/ai-generated-release-notes.yml
+++ b/.github/workflows/ai-generated-release-notes.yml
@@ -9,6 +9,7 @@ jobs:
# Only run on PR comments from CodeRabbit bot
if: github.event.issue.pull_request && github.event.comment.user.login == 'coderabbitai[bot]'
runs-on: ubuntu-latest
+ environment: ai-release-notes
timeout-minutes: 10
permissions:
contents: write
diff --git a/.github/workflows/docs-spelling.yml b/.github/workflows/docs-spelling.yml
index c403d6e1be..2d48f8bce9 100644
--- a/.github/workflows/docs-spelling.yml
+++ b/.github/workflows/docs-spelling.yml
@@ -146,6 +146,7 @@ jobs:
pull-requests: write
actions: read
runs-on: ubuntu-latest
+ environment: docs-spelling
if: ${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
diff --git a/.github/workflows/i18n-string-extract-master.yml b/.github/workflows/i18n-string-extract-master.yml
index c9acaa434e..63fec315c6 100644
--- a/.github/workflows/i18n-string-extract-master.yml
+++ b/.github/workflows/i18n-string-extract-master.yml
@@ -12,6 +12,7 @@ permissions:
jobs:
extract-and-upload-i18n-strings:
runs-on: ubuntu-latest
+ environment: i18n
if: github.repository == 'actualbudget/actual'
steps:
- name: Check out main repository
diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index 989235459b..e62c47b317 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -14,6 +14,7 @@ concurrency:
jobs:
release-notes:
runs-on: ubuntu-latest
+ environment: pr-automation
steps:
- name: Check if triggered by bot
id: bot-check
diff --git a/.github/workflows/vrt-update-apply.yml b/.github/workflows/vrt-update-apply.yml
index d6358fb3fe..4afb354b01 100644
--- a/.github/workflows/vrt-update-apply.yml
+++ b/.github/workflows/vrt-update-apply.yml
@@ -16,6 +16,7 @@ jobs:
apply-vrt-updates:
name: Apply VRT Updates
runs-on: ubuntu-latest
+ environment: pr-automation
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download patch artifact
diff --git a/upcoming-release-notes/7856.md b/upcoming-release-notes/7856.md
new file mode 100644
index 0000000000..537a3e1f91
--- /dev/null
+++ b/upcoming-release-notes/7856.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Reference dedicated environments for workflows that consume secrets, satisfying zizmor's `secrets-without-environment` audit.