8000 CI: set minimal permissions for GitHub Workflows (#218) · js-dive/tslib@b1026e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1026e3

Browse files
authored
CI: set minimal permissions for GitHub Workflows (microsoft#218)
1 parent 49ac8dc commit b1026e3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI
22

33
on: pull_request
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
ci:
710
runs-on: ubuntu-latest

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
schedule:
99
- cron: '0 19 * * 0'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
CodeQL-Build:
1316

.github/workflows/publish.yaml

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

7+
permissions:
8+
contents: read
9+
710
jobs:
811
publish-npm:
912
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
0