Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Commit 2d7351d

Browse files
authored
Merge pull request #20 from initstring/codex/limit-github_token-permissions-in-workflows
Restrict default GitHub token permissions
2 parents a02acee + 7484878 commit 2d7351d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ main ]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build-and-test:
1013
runs-on: ubuntu-latest

.github/workflows/docker-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Validate Docker Build
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
validate-docker-build:
811
name: Build Docker Image (no push)

0 commit comments

Comments
 (0)