Skip to content

Commit 0ad623e

Browse files
committed
Replace action/upload-artifact with a more secure alternative
Related: AAP-46204
1 parent 9958e82 commit 0ad623e

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,16 @@ jobs:
200200
if: ${{ inputs.run_post }}
201201
run: ${{ inputs.run_post }}
202202

203-
- name: Archive logs and coverage data
204-
uses: actions/upload-artifact@v4
203+
- name: Archive logs and coverage data (secured)
204+
uses: coactions/upload-artifact@fix/multi-folders
205205
with:
206206
name: logs-${{ matrix.name }}.zip
207207
include-hidden-files: true
208208
path: |
209-
.tox/**/log/
209+
.tox/py/pyvenv.cfg
210210
.tox/**/coverage.xml
211+
# Temporary disable of tox log collection until its new release:
212+
# .tox/**/log/
211213

212214
- name: Upload test results to Codecov
213215
if: ${{ !cancelled() && hashFiles('junit.xml') != '' }}

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,11 @@ repos:
3636
- id: ansible-lint
3737
language_version: "3.12"
3838
args: [--fix]
39+
- repo: https://github.com/gitleaks/gitleaks
40+
rev: v8.27.0
41+
hooks:
42+
- id: gitleaks
43+
name: Look for leaked decrets in all files, including build logs
44+
entry: gitleaks dir -v --redact=100 --no-banner --max-archive-depth=2 .
45+
pass_filenames: false
46+
always_run: true

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ uv_seed = true
6363
[testenv:docs]
6464
description = Build docs
6565
extras = docs
66-
passenv =
67-
*
6866
setenv =
6967
# see https://github.com/tox-dev/tox/issues/2092#issuecomment-2538729079
7068
# see https://github.com/Kozea/CairoSVG/issues/392#issuecomment-2538707712

0 commit comments

Comments
 (0)