Skip to content

Commit cea0e96

Browse files
ci: improve permission on workflows
1 parent 9bf1d93 commit cea0e96

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/base-beta.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ concurrency:
2020

2121
jobs:
2222
build:
23+
permissions:
24+
contents: read
2325
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2426
with:
2527
codecov-name: form_builder_extra_fields
2628
enable-fix-tests: true
2729
fvm-flavor: beta
2830
example:
31+
permissions:
32+
contents: read
2933
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
3034
with:
3135
fvm-flavor: beta

.github/workflows/base.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ concurrency:
1818

1919
jobs:
2020
build:
21+
permissions:
22+
contents: read
2123
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2224
with:
2325
codecov-name: form_builder_extra_fields
2426
enable-fix-tests: true
2527
example:
28+
permissions:
29+
contents: read
2630
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
2731

2832
deployment:

.github/workflows/pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
validate-pr-title:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- name: PR Conventional Commit Validation
1214
uses: ytanikin/PRConventionalCommits@1.3.0

.github/workflows/stale.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
jobs:
77
stale:
88
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
contents: write
913
steps:
1014
- uses: actions/stale@v10
1115
with:

0 commit comments

Comments
 (0)