Skip to content

Commit 8935243

Browse files
ci: improve permissions on workflows
1 parent 8190f6d commit 8935243

4 files changed

Lines changed: 15 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,11 +20,15 @@ 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_cupertino_fields
2628
fvm-flavor: beta
2729
example:
30+
permissions:
31+
contents: read
2832
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
2933
with:
3034
fvm-flavor: beta

.github/workflows/base.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
tags:
77
- '[0-9]+.[0-9]+.[0-9]+'
8+
- '[0-9]+.[0-9]+.[0-9]+\+[0-9]+'
89

910
pull_request:
1011
branches: [main]
@@ -18,10 +19,14 @@ concurrency:
1819

1920
jobs:
2021
build:
22+
permissions:
23+
contents: read
2124
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2225
with:
2326
codecov-name: form_builder_cupertino_fields
2427
example:
28+
permissions:
29+
contents: read
2530
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
2631

2732
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)