Skip to content

Commit d128cb7

Browse files
authored
chore: Add permissions to all workflows (#682)
1 parent 803c598 commit d128cb7

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.github/workflows/add_tags.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint_golang.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
golangci:
1215
name: Lint with GolangCI

.github/workflows/lint_markdown.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- ".github/workflow/lint_markdown.yml"
77
- "**.md"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint-grammar:
1114
runs-on: ubuntu-latest
@@ -18,7 +21,7 @@ jobs:
1821
vale_flags: "--glob=!{CHANGELOG.md,.github/styles/proselint/README.md}"
1922
filter_mode: nofilter
2023
fail_on_error: true
21-
version: '3.0.3'
24+
version: "3.0.3"
2225
env:
2326
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2427
lint-structure:

.github/workflows/pr_title.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
1114
main:
1215
name: Validate PR title
@@ -44,7 +47,7 @@ jobs:
4447
# special "[WIP]" prefix to indicate this state. This will avoid the
4548
# validation of the PR title and the pull request checks remain pending.
4649
# Note that a second check will be reported if this is enabled.
47-
wip: true
50+
wip: false
4851
# When using "Squash and merge" on a PR with only one commit, GitHub
4952
# will suggest using that commit message instead of the PR title for the
5053
# merge commit, and it's easy to commit this by mistake. Enable this option

.github/workflows/release_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches:
55
- main
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release-please:
912
runs-on: ubuntu-latest

.github/workflows/unittest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
unitests:
1215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)