Skip to content

Commit e09f808

Browse files
committed
fix: lock down permissions
1 parent 55ae4ab commit e09f808

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/checkmarx.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Checkmarx One Scan
22

3+
# ↓ lock down top‐level permissions to only what we use
4+
permissions:
5+
contents: read # we only need to checkout code
6+
actions: read # to query workflows/runs
7+
pull-requests: write # to comment on or label PRs
8+
39
on:
410
pull_request:
511
branches: [ '**' ]

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ permissions:
88
# Run on pushes to any branch and pull requests
99
on:
1010
push:
11-
branches: ['main']
11+
branches-ignore: ['main']
1212
pull_request:
13-
branches: ['**']
14-
13+
branches: ['main']
1514
jobs:
1615
# Lint all YAML, JSON & Shell
1716
lint:

0 commit comments

Comments
 (0)