Skip to content

Commit 9c9baf2

Browse files
authored
Python3.14 support & version UP (#764)
1 parent 0ba7733 commit 9c9baf2

File tree

15 files changed

+111
-84
lines changed

15 files changed

+111
-84
lines changed

.github/workflows/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
steps:
2222

2323
- name: Harden Runner
24-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
24+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
2525
with:
2626
egress-policy: audit
2727

2828
- name: Checkout
29-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
3030
with:
3131
ref: ${{ github.event.pull_request.head.sha }}
3232

@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Upload output
5353
if: always()
54-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
54+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
5555
with:
5656
name: output.json
5757
path: output.json

.github/workflows/benchmark.yml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
steps:
2424

2525
- name: Harden Runner
26-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
26+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
2727
with:
2828
egress-policy: audit
2929

3030
- name: Checkout CredData
31-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
3232
with:
3333
repository: Samsung/CredData
34-
ref: 76eb5b21f363b4fe95c683514beb215ea60a6347
34+
ref: 32205f28c21c9fcc7fa1bcc5fa2f9dc28b572032
3535

3636
- name: Markup hashing
3737
run: |
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Cache data
4545
id: cache-data
46-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 - 2024.12.05
46+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 - 2026.01.29
4747
with:
4848
path: data
4949
key: cred-data-${{ hashFiles('checksums.md5') }}
@@ -79,15 +79,15 @@ jobs:
7979
steps:
8080

8181
- name: Harden Runner
82-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
82+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
8383
with:
8484
egress-policy: audit
8585

8686
- name: Checkout CredData
87-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
87+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
8888
with:
8989
repository: Samsung/CredData
90-
ref: 76eb5b21f363b4fe95c683514beb215ea60a6347
90+
ref: 32205f28c21c9fcc7fa1bcc5fa2f9dc28b572032
9191

9292
- name: Markup hashing
9393
run: |
@@ -99,7 +99,7 @@ jobs:
9999
100100
- name: Cache data
101101
id: cache-data
102-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 - 2024.12.05
102+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 - 2026.01.29
103103
with:
104104
path: data
105105
key: cred-data-${{ hashFiles('checksums.md5') }}
@@ -124,7 +124,7 @@ jobs:
124124
run: python -m pip install --requirement requirements.txt
125125

126126
- name: Checkout CredSweeper
127-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
127+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
128128
with:
129129
ref: ${{ github.event.pull_request.head.sha }}
130130
path: temp/CredSweeper
@@ -144,21 +144,21 @@ jobs:
144144
145145
- name: Upload CredSweeper log
146146
if: always()
147-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
147+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
148148
with:
149149
name: credsweeper
150150
path: credsweeper.${{ github.event.pull_request.head.sha }}.log
151151

152152
- name: Upload CredSweeper report
153153
if: always()
154-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
154+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
155155
with:
156156
name: report
157157
path: report.${{ github.event.pull_request.head.sha }}.json
158158

159159
- name: Upload benchmark output
160160
if: always()
161-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
161+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
162162
with:
163163
name: benchmark
164164
path: benchmark.${{ github.event.pull_request.head.sha }}.log
@@ -177,20 +177,20 @@ jobs:
177177
strategy:
178178
fail-fast: false
179179
matrix:
180-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
180+
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
181181

182182
steps:
183183

184184
- name: Harden Runner
185-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
185+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
186186
with:
187187
egress-policy: audit
188188

189189
- name: Checkout CredData
190-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
190+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
191191
with:
192192
repository: Samsung/CredData
193-
ref: 76eb5b21f363b4fe95c683514beb215ea60a6347
193+
ref: 32205f28c21c9fcc7fa1bcc5fa2f9dc28b572032
194194

195195
- name: Markup hashing
196196
run: |
@@ -202,7 +202,7 @@ jobs:
202202
203203
- name: Cache data
204204
id: cache-data
205-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 - 2024.12.05
205+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 - 2026.01.29
206206
with:
207207
path: data
208208
key: cred-data-${{ hashFiles('checksums.md5') }}
@@ -252,7 +252,7 @@ jobs:
252252
python -m pip uninstall -y credsweeper
253253
254254
- name: Checkout base CredSweeper
255-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
255+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
256256
with:
257257
ref: ${{ github.event.pull_request.base.sha }}
258258
path: temp/CredSweeper.base
@@ -278,7 +278,7 @@ jobs:
278278
echo "BASE_TIME=${BASE_TIME}" >> $GITHUB_ENV
279279
280280
- name: Checkout current CredSweeper
281-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
281+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
282282
with:
283283
ref: ${{ github.event.pull_request.head.sha }}
284284
path: temp/CredSweeper.head
@@ -370,15 +370,15 @@ jobs:
370370
steps:
371371

372372
- name: Harden Runner
373-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
373+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
374374
with:
375375
egress-policy: audit
376376

377377
- name: Checkout CredData
378-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
378+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
379379
with:
380380
repository: Samsung/CredData
381-
ref: 76eb5b21f363b4fe95c683514beb215ea60a6347
381+
ref: 32205f28c21c9fcc7fa1bcc5fa2f9dc28b572032
382382

383383
- name: Markup hashing
384384
run: |
@@ -390,7 +390,7 @@ jobs:
390390
391391
- name: Cache data
392392
id: cache-data
393-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 - 2024.12.05
393+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 - 2026.01.29
394394
with:
395395
path: data
396396
key: cred-data-${{ hashFiles('checksums.md5') }}
@@ -416,7 +416,7 @@ jobs:
416416
run: python -m pip install --upgrade pip
417417

418418
- name: Checkout current CredSweeper
419-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
419+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
420420
with:
421421
ref: ${{ github.event.pull_request.head.sha }}
422422
path: CredSweeper.head
@@ -434,16 +434,15 @@ jobs:
434434
- name: Run the experiment
435435
run: |
436436
cd CredSweeper.head
437-
ls -al #dbg
438-
pwd #dbg
437+
pwd # dbg
438+
ls -al # dbg
439439
export PYTHONPATH=$(pwd):${PYTHONPATH}
440440
cd experiment
441441
# check whether credsweeper is available as module
442442
python -m credsweeper --banner
443443
# use only 2 epochs for the test
444444
python main.py --data ${{ github.workspace }}/CredData --jobs $(( 2 * $(nproc) )) --epochs 2
445-
# dbg
446-
git diff
445+
git diff # dbg
447446
# crc32 should be changed
448447
python -m credsweeper --banner
449448
# train artifacts check
@@ -467,19 +466,19 @@ jobs:
467466
if: ${{ 'push' == github.event_name }} or ${{ 'Samsung/CredSweeper' == github.event.pull_request.head.repo.full_name }}
468467
steps:
469468
- name: Harden Runner
470-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
469+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
471470
with:
472471
egress-policy: audit
473472

474473
- name: Checkout CredSweeper PR
475474
if: ${{ 'pull_request' == github.event_name }}
476-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
475+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
477476
with:
478477
ref: ${{ github.event.pull_request.head.sha }}
479478

480479
- name: Checkout CredSweeper HEAD
481480
if: ${{ 'push' == github.event_name }}
482-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
481+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
483482
with:
484483
ref: ${{ github.event.head }}
485484

.github/workflows/check.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
# # # MUST be full history to check git workflow
2323

2424
- name: Harden Runner
25-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
25+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
2626
with:
2727
egress-policy: audit
2828

2929
- name: Checkout
3030
id: code_checkout
31-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
3232
with:
3333
fetch-depth: 0
3434
ref: ${{ github.event.pull_request.head.sha }}
@@ -74,16 +74,17 @@ jobs:
7474
id: setup_python
7575
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - 2026.01.22
7676
with:
77-
python-version: "3.13"
77+
python-version: "3.14"
7878

7979
- name: Install CredSweeper and auxiliary packages
8080
id: setup_credsweeper
8181
if: ${{ always() && steps.setup_python.conclusion == 'success' }}
8282
run: |
83-
python --version #dbg
83+
python --version # dbg
8484
python -m pip install --upgrade pip
85+
python -m pip --version # dbg
8586
pip install --requirement requirements.txt
86-
pip list #dbg
87+
pip freeze # dbg
8788
8889
# # # Banner with builtin python binascii.crc32 sum which is zip standard (not cksum result)
8990

@@ -92,7 +93,7 @@ jobs:
9293
run: |
9394
banner="$(python -m credsweeper --banner | grep CredSweeper | head -1)"
9495
echo "banner = '${banner}'"
95-
if [ "CredSweeper 1.14.7 crc32:adbdc773" != "${banner}" ]; then
96+
if [ "CredSweeper 1.14.8 crc32:a6e1804e" != "${banner}" ]; then
9697
echo "Update the check for '${banner}'"
9798
exit 1
9899
fi
@@ -115,6 +116,10 @@ jobs:
115116
if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }}
116117
run: pylint --py-version=3.13 --verbose credsweeper
117118

119+
- name: Analysing the code with pylint and minimum Python version 3.14
120+
if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }}
121+
run: pylint --py-version=3.14 --verbose credsweeper
122+
118123
# # # mypy
119124

120125
- name: Analysing the code with mypy and minimum Python version 3.10
@@ -137,6 +142,11 @@ jobs:
137142
run: |
138143
mypy --config-file .mypy.ini --python-version=3.13 credsweeper
139144
145+
- name: Analysing the code with mypy and minimum Python version 3.14
146+
if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }}
147+
run: |
148+
mypy --config-file .mypy.ini --python-version=3.14 credsweeper
149+
140150
# # # Documentation check
141151

142152
- name: Test for creation sphinx documentations
@@ -170,7 +180,7 @@ jobs:
170180
171181
- name: FLAKE 8 reports
172182
if: ${{ failure() && steps.test_flake8.conclusion == 'failure' }}
173-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
183+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
174184
with:
175185
name: flake8_report
176186
path: flake8.txt
@@ -207,4 +217,4 @@ jobs:
207217

208218
- name: Dependency Review
209219
if: ${{ 'push' != github.event_name }}
210-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0 - 2024.11.20
220+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 - 2025.11.11

.github/workflows/fuzz.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
steps:
2323

2424
- name: Harden Runner
25-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
25+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
2626
with:
2727
egress-policy: audit
2828

2929
- name: Checkout
30-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333

@@ -52,7 +52,7 @@ jobs:
5252
5353
- name: Store coverage report
5454
if: always()
55-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
55+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
5656
with:
5757
name: htmlcov
5858
path: htmlcov
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: New corpus upload
8181
if: ${{ env.NEW_CORPUS > 0 }}
82-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
82+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
8383
with:
8484
name: new_corpus
8585
path: new_corpus
@@ -102,7 +102,7 @@ jobs:
102102
103103
- name: Crash corpus upload
104104
if: ${{ env.CRASH_CORPUS > 0 }}
105-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09
105+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - 2025.12.12
106106
with:
107107
name: crash_corpus
108108
path: crash_corpus

.github/workflows/pypi.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Harden Runner
22-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20
22+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 - 2026.02.08
2323
with:
2424
egress-policy: audit
2525

2626
- name: Checkout
27-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - 2026.01.09
2828
with:
2929
ref: ${{ github.event.pull_request.head.sha }}
3030

@@ -40,8 +40,7 @@ jobs:
4040
pip freeze
4141
python -m build
4242
twine check dist/*
43-
# dbg
44-
find dist -name "*.whl" -exec unzip -d dbg {} +
43+
find dist -name "*.whl" -exec unzip -d dbg {} + # dbg
4544
find dbg -name METADATA -type f -exec cat --number {} +
4645
4746
- name: Publish

0 commit comments

Comments
 (0)