Skip to content

Commit f059405

Browse files
committed
Add explicit permissions to workflow files
Fixes code scanning alerts for missing workflow permissions by setting least-privilege contents: read.
1 parent aa24e79 commit f059405

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Publish Homey App
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
publish:
710
name: Publish Homey App

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
branches: [main]
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
name: Validate, Lint & Test

0 commit comments

Comments
 (0)