Skip to content

Commit 00d4962

Browse files
authored
[chore]: add permissions to github workflows per recommendation (#369)
might resolve: https://github.com/square/workflow-swift/security/code-scanning/12
1 parent ca500d0 commit 00d4962

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Generate and publish docs
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
37
on:
48
push:
59
branches: [ main ]

.github/workflows/swift.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Swift CI
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
37
on:
48
push:
59
branches:

0 commit comments

Comments
 (0)