Skip to content

Commit de8965b

Browse files
chore: update permissions in workflow files for consistency
1 parent d02ae23 commit de8965b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/base-beta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ on:
1313

1414
workflow_dispatch:
1515

16-
permissions:
17-
contents: read
1816
# This ensures that previous jobs for the PR are canceled when PR is updated
1917
concurrency:
2018
group: ${{ github.workflow }}-${{ github.ref }}
2119
cancel-in-progress: true
2220

2321
jobs:
2422
build:
23+
permissions:
24+
contents: read
2525
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2626
with:
2727
codecov-name: flutter_form_builder

.github/workflows/base.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111

1212
workflow_dispatch:
1313

14-
permissions:
15-
contents: read
1614

1715
# This ensures that previous jobs for the PR are canceled when PR is updated
1816
concurrency:
@@ -21,6 +19,8 @@ concurrency:
2119

2220
jobs:
2321
build:
22+
permissions:
23+
contents: read
2424
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2525
with:
2626
codecov-name: flutter_form_builder

.github/workflows/pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ 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
12-
permissions:
13-
contents: read
1414
uses: ytanikin/PRConventionalCommits@1.3.0
1515
with:
1616
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'

0 commit comments

Comments
 (0)