Skip to content

Commit da92ca1

Browse files
fix: add explicit empty permissions to docs-broken-links workflow (#1131)
* fix: add explicit empty permissions to docs-broken-links workflow This addresses CodeQL alert #1 (actions/missing-workflow-permissions). The workflow checks for broken links in docs using Mintlify CLI and doesn't require any GitHub token access. Adding permissions: {} ensures the workflow runs with minimal privileges, reducing supply-chain risk. Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> * chore: add CHANGELOG entry for workflow 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 b93727e commit da92ca1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/docs-broken-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Check for broken links in docs
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: ["main"]

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 missing workflow permissions in `docs-broken-links.yml` by adding explicit `permissions: {}` to follow least privilege principle. [#1131](https://github.com/sourcebot-dev/sourcebot/pull/1131)
1314
- Fixed CodeQL missing-workflow-permissions alert by adding explicit empty permissions to `deploy-railway.yml`. [#1132](https://github.com/sourcebot-dev/sourcebot/pull/1132)
1415

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

0 commit comments

Comments
 (0)