A local-first personal finance app
:gear: Updating workflow based on audit (#7740)
Michael Clark1f4f706c4a62
diff --git a/.github/workflows/cut-release-branch.yml b/.github/workflows/cut-release-branch.ymlindex 732d27f6f8..ac6f34f26e 100644--- a/.github/workflows/cut-release-branch.yml+++ b/.github/workflows/cut-release-branch.yml@@ -26,6 +26,7 @@ permissions:jobs:cut-release-branch:runs-on: ubuntu-latest+ environment: releasesteps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2diff --git a/.github/workflows/docker-edge.yml b/.github/workflows/docker-edge.ymlindex 230b097e6b..7cedb9248f 100644--- a/.github/workflows/docker-edge.yml+++ b/.github/workflows/docker-edge.yml@@ -32,6 +32,7 @@ jobs:if: github.event_name == 'workflow_dispatch' || !github.event.repository.forkname: Build Docker imageruns-on: ubuntu-latest+ environment: releasestrategy:matrix:os: [ubuntu, alpine]diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.ymlindex 87746b6385..6c971ca3a7 100644--- a/.github/workflows/docker-release.yml+++ b/.github/workflows/docker-release.yml@@ -27,6 +27,7 @@ jobs:build:name: Build Docker imageruns-on: ubuntu-latest+ environment: releasesteps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:diff --git a/.github/workflows/electron-master.yml b/.github/workflows/electron-master.ymlindex e9324137db..5393d9a56e 100644--- a/.github/workflows/electron-master.yml+++ b/.github/workflows/electron-master.yml@@ -21,6 +21,7 @@ jobs:# this is so the assets can be added to the releasepermissions:contents: write+ environment: releasestrategy:fail-fast: falsematrix:@@ -123,6 +124,7 @@ jobs:publish-microsoft-store:needs: buildruns-on: windows-latest+ environment: releaseif: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}steps:- name: Install StoreBrokerdiff --git a/.github/workflows/netlify-release.yml b/.github/workflows/netlify-release.ymlindex 1cc227b071..10d3d40435 100644--- a/.github/workflows/netlify-release.yml+++ b/.github/workflows/netlify-release.yml@@ -19,6 +19,7 @@ concurrency:jobs:build-and-deploy:runs-on: ubuntu-latest+ environment: releasesteps:- name: Repository Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2diff --git a/.github/workflows/publish-flathub.yml b/.github/workflows/publish-flathub.ymlindex 720592f6ab..d55437f855 100644--- a/.github/workflows/publish-flathub.yml+++ b/.github/workflows/publish-flathub.yml@@ -21,6 +21,7 @@ concurrency:jobs:publish-flathub:runs-on: ubuntu-22.04+ environment: releasesteps:- name: Resolve versionid: resolve_versiondiff --git a/.github/workflows/publish-nightly-electron.yml b/.github/workflows/publish-nightly-electron.ymlindex 09f7d04bb8..8e363eb2c8 100644--- a/.github/workflows/publish-nightly-electron.yml+++ b/.github/workflows/publish-nightly-electron.yml@@ -27,6 +27,7 @@ jobs:- windows-latest- macos-latestruns-on: ${{ matrix.os }}+ environment: releaseif: github.event.repository.fork == falsesteps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2diff --git a/.github/workflows/publish-npm-packages.yml b/.github/workflows/publish-npm-packages.ymlindex 85446e80be..4b87a71387 100644--- a/.github/workflows/publish-npm-packages.yml+++ b/.github/workflows/publish-npm-packages.yml@@ -87,6 +87,7 @@ jobs:runs-on: ubuntu-latestname: Publish npm packagesneeds: build-and-pack+ environment: releasepermissions:contents: readpackages: write@@ -105,6 +106,7 @@ jobs:node-version: 24check-latest: trueregistry-url: 'https://registry.npmjs.org'+ cache: false- name: Publish Corerun: |diff --git a/upcoming-release-notes/7740.md b/upcoming-release-notes/7740.mdnew file mode 100644index 0000000000..9b6e751e3f--- /dev/null+++ b/upcoming-release-notes/7740.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [MikesGlitch]+---++Improve Github workflows with suggestions from the code scan.