ci: drop GitHub Actions permissions Forgejo ignores #184

Merged
meshflows merged 1 commit from fix/forgejo-drop-permissions into main 2026-09-02 11:39:28 +00:00
Owner

Summary

  • Remove job- and workflow-level permissions: from Forgejo Actions YAML.
  • Forgejo does not support this GitHub Actions field; it is ignored and produces run warnings (not a functional failure).
  • Grant capabilities via Authorized Integrations / PAT secrets instead.

Touched files: .github/workflows/build.yml (jobs build-engine-services, build-forgejo-runner, build-wiki, sync-forgejo-wiki, retag-product-version), .github/workflows/publish-product-version.yml, .github/workflows/security-audit.yml.

Test plan

  • Confirm the previously warned jobs no longer show the permissions warning
  • Confirm the three workflow files still parse and run
## Summary - Remove job- and workflow-level `permissions:` from Forgejo Actions YAML. - Forgejo does not support this GitHub Actions field; it is ignored and produces run warnings (not a functional failure). - Grant capabilities via Authorized Integrations / PAT secrets instead. Touched files: `.github/workflows/build.yml` (jobs `build-engine-services`, `build-forgejo-runner`, `build-wiki`, `sync-forgejo-wiki`, `retag-product-version`), `.github/workflows/publish-product-version.yml`, `.github/workflows/security-audit.yml`. ## Test plan - [ ] Confirm the previously warned jobs no longer show the permissions warning - [ ] Confirm the three workflow files still parse and run
ci: drop GitHub Actions permissions Forgejo ignores
All checks were successful
Build & Push Docker Images / Build (_noop) Engine Services [.] (_noop, .) (push) Successful in 3s
Build & Push Docker Images / Detect Changed Components (pull_request) Successful in 30s
Build & Push Docker Images / Sync compact pointer to Forgejo Wiki (pull_request) Has been skipped
Build & Push Docker Images / Validate Repository Structure (pull_request) Successful in 5s
Dependency Security Audit / Check Dependencies (pull_request) Successful in 4m25s
Build & Push Docker Images / Test Engine Smoke Suite (pytest) (pull_request) Successful in 46s
Build & Push Docker Images / Validate Workflow YAML (pull_request) Successful in 17s
Build & Push Docker Images / Validate Kubernetes Manifests (pull_request) Successful in 6s
Test & Validate / Test Summary (pull_request) Successful in 1s
Build & Push Docker Images / Test Summary (push) Successful in 1s
Build & Push Docker Images / Test Gate (push) Successful in 0s
Build & Push Docker Images / Retag Product Version (push) Successful in 5s
Build & Push Docker Images / Build Forgejo Runner Image (pull_request) Successful in 15s
Build & Push Docker Images / Build Wiki (MkDocs) (pull_request) Successful in 11s
Build & Push Docker Images / Test Summary (pull_request) Successful in 1s
Build & Push Docker Images / Build (_noop) Engine Services [.] (_noop, .) (pull_request) Successful in 6s
Build & Push Docker Images / Publish Release Bundle (push) Successful in 1s
Build & Push Docker Images / Test Gate (pull_request) Successful in 0s
Build & Push Docker Images / Resolve Auto-Deploy Targets (push) Successful in 0s
Build & Push Docker Images / Retag Product Version (pull_request) Successful in 1s
Build & Push Docker Images / Build Summary (push) Successful in 1s
Build & Push Docker Images / Trigger Deploy DEV (dev) (push) Successful in 1s
Build & Push Docker Images / Trigger Deploy TST/LAB (lab) (push) Has been skipped
Build & Push Docker Images / Trigger Deploy TST/LAB (tst) (push) Has been skipped
Build & Push Docker Images / Publish Release Bundle (pull_request) Successful in 1s
Build & Push Docker Images / Resolve Auto-Deploy Targets (pull_request) Successful in 1s
Build & Push Docker Images / Build Summary (pull_request) Successful in 1s
Build & Push Docker Images / Trigger Deploy DEV (dev) (pull_request) Successful in 3s
Build & Push Docker Images / Trigger Deploy TST/LAB (lab) (pull_request) Has been skipped
Build & Push Docker Images / Trigger Deploy TST/LAB (tst) (pull_request) Has been skipped
f44903d9db
Forgejo does not support the permissions field and warns on every run; grant capabilities via Authorized Integrations or PAT secrets instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign in to join this conversation.
No description provided.