Skip to content

Commit 566fd2d

Browse files
committed
update permissions
1 parent b5ec903 commit 566fd2d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/security-branch-protections.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ name: Alert Changed Branch Protections
1414
run-name: Alert Changed Branch Protections
1515

1616
permissions:
17-
contents: write
17+
contents: read
1818

1919
jobs:
2020
check-branch-protections:
2121
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
2224
environment: Security
2325
if: github.repository == 'aws-powertools/powertools-lambda-java'
2426
strategy:

.github/workflows/security-dependencies-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
verify:
1717
runs-on: ubuntu-latest
1818
permissions:
19+
contents: read
1920
pull-requests: write
2021
steps:
2122
- name: 'Checkout Repository'

0 commit comments

Comments
 (0)