Skip to content

Commit f2d1985

Browse files
fix: add explicit empty permissions to deploy-railway.yml (#1132)
* fix: add explicit empty permissions to deploy-railway.yml Add permissions: {} at the workflow level to explicitly deny all GitHub token permissions, following the principle of least privilege. This workflow only needs RAILWAY_TOKEN and has no use for GitHub token access. Fixes the CodeQL actions/missing-workflow-permissions alert #27. Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> * docs: add CHANGELOG entry for deploy-railway permissions fix Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent 2c89825 commit f2d1985

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/deploy-railway.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Deploy to Railway
22

3+
permissions: {}
4+
35
on:
46
workflow_run:
57
workflows: ["Release Sourcebot (Development)"]

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111
- Fixed revision selection so the 64-revision cap prefers the newest matching branches and tags instead of pruning by ref-name order. [#1122](https://github.com/sourcebot-dev/sourcebot/pull/1122)
1212
- Fixed infinite pagination loop in Gitea/Forgejo when an API token can only see a subset of org repos (the `x-total-count` header reports org total while token returns fewer items). [#1130](https://github.com/sourcebot-dev/sourcebot/pull/1130)
13+
- Fixed CodeQL missing-workflow-permissions alert by adding explicit empty permissions to `deploy-railway.yml`. [#1132](https://github.com/sourcebot-dev/sourcebot/pull/1132)
1314

1415
## [4.16.11] - 2026-04-17
1516

0 commit comments

Comments
 (0)