Skip to content

Commit b9e9c4c

Browse files
authored
chore: Add permissions to all workflows (#2289)
1 parent 162e001 commit b9e9c4c

File tree

8 files changed

+23
-18
lines changed

8 files changed

+23
-18
lines changed

.github/workflows/add_tags.yml

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

.github/workflows/go_mod_tidy_examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [opened, reopened]
66
paths:
77
- 'go.mod'
8+
permissions:
9+
contents: read
10+
811
jobs:
912
go-mod-tidy-example:
1013
timeout-minutes: 5

.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: 3 additions & 0 deletions
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

.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
@@ -45,7 +48,7 @@ jobs:
4548
# special "[WIP]" prefix to indicate this state. This will avoid the
4649
# validation of the PR title and the pull request checks remain pending.
4750
# Note that a second check will be reported if this is enabled.
48-
wip: true
51+
wip: false
4952
# When using "Squash and merge" on a PR with only one commit, GitHub
5053
# will suggest using that commit message instead of the PR title for the
5154
# 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-post.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
post-unitests:
1114
runs-on: ubuntu-latest

.github/workflows/unittest.yml

Lines changed: 4 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
strategy:
@@ -37,6 +40,7 @@ jobs:
3740
with:
3841
name: delta-action-benchmarks
3942
retention-days: 7
43+
if-no-files-found: error
4044
path: |
4145
.delta.*
4246
pr_number

0 commit comments

Comments
 (0)