Harden the app's loop commit gate, agent launch and file writes, and tighten workflow permissions

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-05 11:38:57 -08:00
1 parent 30fd1134ea
commit b17213322c
10 files changed
+240 -42

No files matched your search

+13 -1
View File
@@ -14,8 +14,16 @@ on:
push:
tags: ['v*']
# Read-only by default: the build jobs run dependency install scripts and build scripts, so
# only the publish job holds a write token.
permissions:
contents: write
contents: read
# A release published after its tag push starts a second run for the same tag: queue it behind
# the first so two builds never upload over each other.
concurrency:
group: release-app-${{ github.event.release.tag_name || github.ref_name }}
cancel-in-progress: false
jobs:
build:
@@ -34,6 +42,8 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v4.2.2
with:
persist-credentials: false
- uses: actions/setup-node@v4.4.0
with:
node-version: 22
@@ -83,6 +93,8 @@ jobs:
name: attach to the release
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name || github.ref_name }}