Skip to content

Commit 21f719e

Browse files
authored
ci: add token permissions (#305)
1 parent baf446b commit 21f719e

File tree

8 files changed

+24
-3
lines changed

8 files changed

+24
-3
lines changed

.github/codecov.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
codecov:
2-
allow_coverage_offsets: true # Avoid "Missing base report" due to committing with "[CI skip]"
3-
41
comment:
52
layout: "diff, files"
63

@@ -9,3 +6,4 @@ coverage:
96
project:
107
default:
118
threshold: 0.1%
9+
patch: off

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
- "!.coveragerc"
2020
- "!.gitignore"
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
test:
2427
name: "Run Tests on Multiple Platforms"

.github/workflows/publish_package.yml

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
build-n-publish-pypi:
912
name: Build and publish Python distributions to PyPI

.github/workflows/pytest.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
statuses: write
14+
pull-requests: write
15+
1116
jobs:
1217
build:
1318
runs-on: ubuntu-latest

.github/workflows/ruff_check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ruff_check:
1316
runs-on: ubuntu-latest

.github/workflows/run-on-gpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- "!.coveragerc"
2323
- "!.gitignore"
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
test-cli-gpu:
2730
name: "Run Tests on GPU Runners"

.github/workflows/test-mac.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
paths:
77
- comfy_cli/**
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: macos-latest

.github/workflows/test-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
paths:
77
- comfy_cli/**
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: windows-latest

0 commit comments

Comments
 (0)