Skip to content

Commit af3f713

Browse files
authored
fix: Workflow does not contain permissions (#93)
1 parent 08f2349 commit af3f713

File tree

9 files changed

+18
-1
lines changed

9 files changed

+18
-1
lines changed

.github/workflows/auto-close.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
close-not-reproducible-issues:
1013
runs-on: ubuntu-latest

.github/workflows/ci-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: Build
24

35
on:

.github/workflows/ci-e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: E2E tests
24

35
on:

.github/workflows/ci-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: Static code analysis
24

35
on:

.github/workflows/ci-smoke.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: Smoke tests
24

35
on:

.github/workflows/ci-typecheck.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# Make this a reusable workflow, no value needed
66
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
77

8+
permissions:
9+
contents: read
10+
811
env:
912
TURBO_TELEMETRY_DISABLED: 1
1013

.github/workflows/ci-unit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: Unit tests
24

35
on:

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
permissions:
17+
contents: read
1718
pull-requests: write
1819

1920
jobs:

e2e/helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,5 @@ export async function collapseAllTests(testingSection: DefaultTreeSection) {
124124
}
125125

126126
export function resetFileChange(filePath: string) {
127-
shell.exec(`git checkout ${filePath}`, { silent: true })
127+
shell.cmd('git', 'checkout', filePath)
128128
}

0 commit comments

Comments
 (0)