File tree Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11
+ with :
12
+ persist-credentials : false
11
13
- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
12
14
with :
13
15
python-version : 3.x
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
10
10
hash : ${{ steps.hash.outputs.hash }}
11
11
steps :
12
12
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13
+ with :
14
+ persist-credentials : false
13
15
- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
14
16
with :
15
17
python-version : ' 3.x'
16
- cache : pip
17
- cache-dependency-path : requirements*/*.txt
18
18
- run : pip install -r requirements/build.txt
19
19
# Use the commit date instead of the current date during the build.
20
20
- run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
@@ -48,10 +48,11 @@ jobs:
48
48
- name : create release
49
49
run : >
50
50
gh release create --draft --repo ${{ github.repository }}
51
- ${{ github.ref_name }}
51
+ $REF_NAME
52
52
*.intoto.jsonl/* artifact/*
53
53
env :
54
54
GH_TOKEN : ${{ github.token }}
55
+ REF_NAME : ${{ github.ref_name }}
55
56
publish-pypi :
56
57
needs : [provenance]
57
58
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
Original file line number Diff line number Diff line change @@ -24,28 +24,18 @@ jobs:
24
24
- {name: Minimum Versions, python: '3.12', tox: py-min}
25
25
- {name: Development Versions, python: '3.9', tox: py-dev}
26
26
steps :
27
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
- - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
27
+ - uses : pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
29
28
with :
29
+ environment : ${{ format('py{0}', matrix.python) }}
30
30
python-version : ${{ matrix.python }}
31
- allow-prereleases : true
32
- cache : pip
33
- cache-dependency-path : requirements*/*.txt
34
- - run : pip install tox
35
- - run : tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
36
31
typing :
37
32
runs-on : ubuntu-latest
38
33
steps :
39
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
- - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
34
+ - uses : pallets/actions/tox@5c46d4abb052877fa7e84db0ceec21b33673559e
41
35
with :
36
+ environment : ' typing'
42
37
python-version : ' 3.x'
43
- cache : pip
44
- cache-dependency-path : requirements*/*.txt
45
- - name : cache mypy
46
- uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
47
- with :
48
- path : ./.mypy_cache
49
- key : mypy|${{ hashFiles('pyproject.toml') }}
50
- - run : pip install tox
51
- - run : tox run -e typing
38
+ workflow :
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : pallets/actions/zizmor@5c46d4abb052877fa7e84db0ceec21b33673559e
You can’t perform that action at this time.
0 commit comments