Skip to content

Commit 2bfda12

Browse files
committed
Update workflows to read-all instead of write-all
1 parent 5b38d07 commit 2bfda12

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- dev
1313
- sd3
1414

15+
# CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
16+
permissions: read-all
17+
1518
jobs:
1619
build:
1720
runs-on: ${{ matrix.os }}
@@ -40,7 +43,7 @@ jobs:
4043
- name: Install dependencies
4144
run: |
4245
# Pre-install torch to pin version (requirements.txt has dependencies like transformers which requires pytorch)
43-
pip install dadaptation==3.2 torch==${{ matrix.pytorch-version }} torchvision==0.19.0 pytest==8.3.4
46+
pip install dadaptation==3.2 torch==${{ matrix.pytorch-version }} torchvision pytest==8.3.4
4447
pip install -r requirements.txt
4548
4649
- name: Test with pytest

.github/workflows/typos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- synchronize
1313
- reopened
1414

15+
# CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
16+
permissions: read-all
17+
1518
jobs:
1619
build:
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)