Skip to content

Commit c057ce0

Browse files
committed
ci: declare minimal permissions on sync-to-gitlab workflow
Adds explicit permissions: contents: read at workflow level. The workflow only needs read access to check out the repo; the GitLab push uses GITLAB_TOKEN (a repo secret), not GITHUB_TOKEN. Resolves CodeQL alert: actions/missing-workflow-permissions
1 parent ce549a3 commit c057ce0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sync-to-gitlab.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
branches:
1515
- main
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
sync:
1922
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)