Skip to content

Commit c5210dc

Browse files
Use read permissions in GitHub workflows (#39)
GitOrigin-RevId: aa1ad11
1 parent 4933590 commit c5210dc

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/go-test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Go Tests
2+
permissions:
3+
contents: read
24

35
on:
46
push:
5-
branches: [ main ]
7+
branches: [main]
68
pull_request:
7-
branches: [ main ]
9+
branches: [main]
810

911
jobs:
1012
test:
@@ -27,4 +29,4 @@ jobs:
2729
run: go build -v ./...
2830

2931
- name: Test with the Go CLI
30-
run: go test $(go list ./... | grep -v e2e)
32+
run: go test $(go list ./... | grep -v e2e)

.github/workflows/mirror.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Mirror to Public Repository
2+
permissions:
3+
contents: read
4+
25
on:
36
push:
4-
branches: [ main ]
7+
branches: [main]
58

69
jobs:
710
mirror:

0 commit comments

Comments
 (0)