Skip to content

Commit 515310f

Browse files
committed
Add permissions for content access in workflows
This update adds the 'permissions' section to both validate.yml and webpack.yml to ensure that the workflows have read access to the repository contents. This change is necessary to ensure top-level permissions are not set to write-all.
1 parent bd0861e commit 515310f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.codacy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ engines:
1515
# CSS & Web Standards
1616
stylelint:
1717
enabled: true
18+
config:
19+
rules:
20+
function-allowwed-list: ["url", "var", "filter", "invert"]
1821

1922
# Documentation & Config
2023
markdownlint:

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
branches:
55
- main
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
hacs:
812
name: HACS Action

.github/workflows/webpack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check-for-changes:
1013
name: Check for changes

0 commit comments

Comments
 (0)