Skip to content

Commit 3d22d11

Browse files
authored
Potential fix for code scanning alert Workflow does not contain permissions (#530)
Fix for "Workflow does not contain permissions" by adding `permissions: contents: read`.
1 parent 4e053bb commit 3d22d11

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/code-qa.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- '**/*.css'
1515
- '**/*.scss'
1616
- '**/*.html'
17-
- '.github/workflows/code-qa.yml'
17+
- '.github/workflows/code-qa.yaml'
1818
pull_request:
1919
branches: [main]
2020
paths:
@@ -28,8 +28,10 @@ on:
2828
- '**/*.css'
2929
- '**/*.scss'
3030
- '**/*.html'
31-
- '.github/workflows/code-qa.yml'
31+
- '.github/workflows/code-qa.yaml'
3232

33+
permissions:
34+
contents: read
3335
jobs:
3436
build:
3537
runs-on: ubuntu-latest

.github/workflows/markdown-lint.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ on:
77
- '**/*.md'
88
- '.markdownlint.json'
99
- '.markdownlintignore'
10-
- '.github/workflows/markdown-lint.yml'
10+
- '.github/workflows/markdown-lint.yaml'
1111
pull_request:
1212
branches: [main]
1313
paths:
1414
- '**/*.md'
1515
- '.markdownlint.json'
1616
- '.markdownlintignore'
17-
- '.github/workflows/markdown-lint.yml'
17+
- '.github/workflows/markdown-lint.yaml'
1818

19+
permissions:
20+
contents: read
1921
jobs:
2022
lint-markdown:
2123
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)