Skip to content

Commit ceb9d4d

Browse files
committed
Make main.yaml workflow safer
1 parent 077c63a commit ceb9d4d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Built from:
2-
# https://docs.github.com/en/actions/guides/building-and-testing-python
3-
# https://github.com/actions/setup-python/
4-
1+
# Action passes pedantic check with zizmor 1.3.0, https://woodruffw.github.io/zizmor/
52
name: Build and test linkml-runtime
63

74
on: [pull_request]
85

6+
permissions: {}
7+
98
jobs:
109
test:
1110
strategy:
@@ -17,7 +16,8 @@ jobs:
1716
- os: windows-latest
1817
python-version: "3.8"
1918
runs-on: ${{ matrix.os }}
20-
19+
permissions:
20+
contents: read
2121
steps:
2222

2323
#----------------------------------------------
@@ -33,6 +33,7 @@ jobs:
3333
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3434
with:
3535
fetch-depth: 0
36+
persist-credentials: false
3637

3738
- name: Set up Python ${{ matrix.python-version }}
3839
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b

0 commit comments

Comments
 (0)