Skip to content

Commit f4cb681

Browse files
committed
πŸ”’οΈ Restrict permissions on workflows part 2
1 parent 8b9d886 commit f4cb681

File tree

9 files changed

+2
-18
lines changed

9 files changed

+2
-18
lines changed

β€Ž.github/workflows/addon-ci.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
99
cancel-in-progress: true
1010

11-
permissions: read-all
12-
1311
jobs:
1412

1513
information:

β€Ž.github/workflows/addon-deploy.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ concurrency:
1616
group: deploy
1717
cancel-in-progress: false
1818

19-
permissions: read-all
20-
2119
jobs:
2220
information:
2321
if: github.event_name == 'release'

β€Ž.github/workflows/labels.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
paths:
1313
- .github/labels.yaml
1414

15-
permissions: read-all
16-
1715
jobs:
1816
labels:
1917
name: ♻️ Sync labels

β€Ž.github/workflows/pr-labels.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- synchronize
1111
workflow_call:
1212

13-
permissions: read-all
14-
1513
jobs:
1614
pr_labels:
1715
name: βœ”οΈ Verify label

β€Ž.github/workflows/pr-title.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
- edited
99
workflow_call:
1010

11-
permissions: read-all
12-
1311
jobs:
1412
gitmoji-pr-title:
1513
name: βœ”οΈ Verify title

β€Ž.github/workflows/release-drafter.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: Release Drafter
44
on:
55
workflow_call:
66

7-
permissions: read-all
8-
97
jobs:
108
update_release_draft:
119
name: ✏️ Draft release

β€Ž.github/workflows/repository-pr.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: Verify edge repository
44
on:
55
workflow_call:
66

7-
permissions: read-all
8-
97
jobs:
108
lint-markdown:
119
name: πŸ”Ž MarkdownLint

β€Ž.github/workflows/repository-update.yamlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ concurrency:
1616
group: queue
1717
cancel-in-progress: false
1818

19-
permissions: read-all
20-
2119
jobs:
2220
publish:
2321
name: Publish add-on update
2422
runs-on: ubuntu-latest
23+
permissions:
24+
contents: write
2525
steps:
2626
- name: πŸš€ Run Repository Updater
2727
uses: hassio-addons/repository-updater@v1

β€Ž.github/workflows/workflows-pr.yamlβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- synchronize
1111
workflow_dispatch:
1212

13-
permissions: read-all
14-
1513
jobs:
1614
lint-markdown:
1715
name: πŸ”Ž MarkdownLint

0 commit comments

Comments
Β (0)