Skip to content

Commit 4f75a5e

Browse files
authored
Restrict workflow permissions to read-only (#155)
1 parent a2ffc6e commit 4f75a5e

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33
name: Run Unit Tests
44
on: pull_request
5-
5+
permissions:
6+
contents: read
67

78
jobs:
89
build:

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright Kani Contributors
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33
name: Deploy Extension
4+
permissions:
5+
contents: read
46

57
on:
68
push:

.github/workflows/format-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33
name: Format Check
44
on: pull_request
5+
permissions:
6+
contents: read
57

68
jobs:
79
format-check:

0 commit comments

Comments
 (0)