File tree 4 files changed +43
-3
lines changed
4 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 13
13
with :
14
14
submodules : true
15
15
fetch-depth : 0
16
+ persist-credentials : false
16
17
- name : ruff check
17
18
uses : chartboost/ruff-action@v1
18
19
- name : ruff format
46
47
uses : actions/checkout@v4
47
48
with :
48
49
submodules : true
50
+ persist-credentials : false
49
51
- name : Set up Python
50
52
uses : actions/setup-python@v5
51
53
with :
@@ -104,6 +106,7 @@ jobs:
104
106
with :
105
107
submodules : true
106
108
fetch-depth : 0
109
+ persist-credentials : false
107
110
- name : Set up Python ${{ matrix.python-version }}
108
111
uses : actions/setup-python@v5
109
112
with :
Original file line number Diff line number Diff line change 25
25
with :
26
26
submodules : true
27
27
fetch-depth : 0
28
+ persist-credentials : false
28
29
- name : update core
30
+ env :
31
+ TAG : ${{ inputs.tag || 'master '}}
29
32
# needs to detach because we can update to a tag
30
- run : git -C uap-core switch --detach ${{ inputs.tag || 'master' }}
33
+ run : git -C uap-core switch --detach "$TAG"
31
34
- name : Set up Python
32
35
uses : actions/setup-python@v5
33
36
with :
Original file line number Diff line number Diff line change 22
22
steps :
23
23
- name : Checkout working copy
24
24
uses : actions/checkout@v4
25
+ with :
26
+ persist-credentials : false
25
27
- name : Set up Python
26
28
uses : actions/setup-python@v5
27
29
with :
@@ -34,15 +36,15 @@ jobs:
34
36
run : python -mbuild
35
37
- name : Publish to testpypi
36
38
if : ${{ env.ENVNAME == 'testpypi' }}
37
- uses : pypa/gh-action-pypi-publish@release/v1
39
+ uses : pypa/gh-action-pypi-publish@release/v1 # zizmor: ignore[use-trusted-publishing]
38
40
with :
39
41
repository-url : https://test.pypi.org/legacy/
40
42
skip-existing : true
41
43
verbose : true
42
44
password : ${{ secrets.PUBLISH_TOKEN }}
43
45
- name : Publish to pypi
44
46
if : ${{ env.ENVNAME == 'pypi' }}
45
- uses : pypa/gh-action-pypi-publish@release/v1
47
+ uses : pypa/gh-action-pypi-publish@release/v1 # zizmor: ignore[use-trusted-publishing]
46
48
with :
47
49
verbose : true
48
50
password : ${{ secrets.PUBLISH_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Zizmor
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ zizmor :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ security-events : write
12
+ contents : read
13
+
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
17
+ with :
18
+ persist-credentials : false
19
+
20
+ - name : Install the latest version of uv
21
+ uses : astral-sh/setup-uv@v5
22
+
23
+ - name : Run zizmor
24
+ run : uvx zizmor --format sarif . > results.sarif
25
+ env :
26
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ - name : Upload SARIF file
29
+ uses : github/codeql-action/upload-sarif@v3
30
+ with :
31
+ sarif_file : results.sarif
32
+ category : zizmor
You can’t perform that action at this time.
0 commit comments