Skip to content

Commit 442f28a

Browse files
authored
chore: Add permissions to all workflows (#552)
1 parent 5151509 commit 442f28a

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

.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/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/regen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- cron: "0 8 * * *"
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
regen:
912
timeout-minutes: 30

.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: 4 additions & 1 deletion
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
timeout-minutes: 30
@@ -28,4 +31,4 @@ jobs:
2831
run: make test
2932
env:
3033
CLOUDQUERY_TEAM_NAME: ${{ secrets.CLOUDQUERY_TEAM_NAME }}
31-
CLOUDQUERY_API_KEY: ${{ secrets.CLOUDQUERY_API_KEY }}
34+
CLOUDQUERY_API_KEY: ${{ secrets.CLOUDQUERY_API_KEY }}

0 commit comments

Comments
 (0)