Skip to content

Commit b72dd87

Browse files
committed
chore: set github action permissions (#834)
Signed-off-by: Rueian <[email protected]>
1 parent f94c0e3 commit b72dd87

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Go Modules Test
22

3+
permissions:
4+
contents: read
5+
36
on: [push, pull_request]
47

58
# https://docs.github.com/en/actions/learn-github-actions/expressions

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "CodeQL"
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches: [ "**" ]

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
branches:
77
- main
88

9-
permissions: {}
9+
permissions:
10+
contents: write
1011
jobs:
1112
update_release_draft:
1213
permissions:

.github/workflows/tag-subpkg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tag Prefix Workflow
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
tags:

0 commit comments

Comments
 (0)