Skip to content

Commit e9ca737

Browse files
authored
Update workflows to include permissions (#43)
Added permissions for read access to contents.
1 parent 85bbd58 commit e9ca737

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/clang-format-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches: [ "main" ]
55
pull_request:
66
branches: [ "main" ]
7+
permissions:
8+
contents: read
79
jobs:
810
formatting-check:
911
name: Formatting Check

.github/workflows/swift.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: Swift
2-
32
on:
43
push:
54
branches: [ "main" ]
65
pull_request:
76
branches: [ "main" ]
8-
7+
permissions:
8+
contents: read
99
jobs:
1010
build:
11-
1211
runs-on: macos-latest
13-
1412
steps:
1513
- name: Set Xcode version
1614
uses: maxim-lobanov/setup-xcode@v1

0 commit comments

Comments
 (0)