@@ -21,7 +21,7 @@ Below is a sample matrix job configuration for this action:
2121 runs-on : " ubuntu-24.04"
2222 needs :
2323 - python-build
24- # Matrix job
24+ # Matrix job
2525 strategy :
2626 fail-fast : false
2727 matrix : ${{ fromJson(needs.python-build.outputs.matrix_json) }}
@@ -38,6 +38,45 @@ Below is a sample matrix job configuration for this action:
3838
3939Before the audit shown above, a Python build job has run (not shown).
4040
41+ ### Multi-Architecture Example
42+
43+ When auditing builds for different architectures, use the ` artefact_name` input
44+ to download the correct architecture-specific artefacts :
45+
46+ <!-- markdownlint-disable MD046 -->
47+
48+ ` ` ` yaml
49+ python-audit-x64:
50+ name: "Python Audit x64"
51+ runs-on: "ubuntu-latest"
52+ needs: python-build-x64
53+ strategy:
54+ fail-fast: false
55+ matrix: ${{ fromJson(needs.python-build-x64.outputs.matrix_json) }}
56+ steps:
57+ - name: "Audit project dependencies"
58+ uses: lfreleng-actions/python-audit-action@main
59+ with:
60+ python_version: ${{ matrix.python-version }}
61+ artefact_name: my-package-x64
62+
63+ python-audit-arm64:
64+ name: "Python Audit ARM64"
65+ runs-on: "ubuntu-24.04-arm"
66+ needs: python-build-arm64
67+ strategy:
68+ fail-fast: false
69+ matrix: ${{ fromJson(needs.python-build-arm64.outputs.matrix_json) }}
70+ steps:
71+ - name: "Audit project dependencies"
72+ uses: lfreleng-actions/python-audit-action@main
73+ with:
74+ python_version: ${{ matrix.python-version }}
75+ artefact_name: my-package-arm64
76+ ` ` `
77+
78+ <!-- markdownlint-enable MD046 -->
79+
4180# # Usage Examples
4281
4382` ` ` yaml
@@ -75,14 +114,15 @@ To ignore specific vulnerabilities:
75114
76115<!-- markdownlint-disable MD013 -->
77116
78- | Variable Name | Required | Default | Description |
79- | --------------- | -------- | --------- | ----------------------------------------------------------- |
80- | python_versions | True | N/A | Matrix job Python version |
81- | permit_fail | False | False | Continue/pass even when the audit fails |
82- | artefact_path | False | "dist" | Stores the test coverage report bundle as an artefact |
83- | summary | False | True | Whether pypa/gh-action-pip-audit generates summary output |
84- | path_prefix | False | "" | Path/directory to Python project code |
85- | ignore_vulns | False | See below | Vulnerability IDs to ignore (whitespace separated) |
117+ | Variable Name | Required | Default | Description |
118+ | -------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
119+ | python_version | True | N/A | Matrix job Python version |
120+ | artefact_name | False | | Custom name for downloaded artefacts (defaults to project name). Useful when building for different platforms/architectures to avoid artefact name conflicts |
121+ | permit_fail | False | False | Continue/pass even when the audit fails |
122+ | artefact_path | False | "dist" | Path/location to build artefacts |
123+ | summary | False | True | Whether pypa/gh-action-pip-audit generates summary output |
124+ | path_prefix | False | "" | Path/directory to Python project code |
125+ | ignore_vulns | False | See below | Vulnerability IDs to ignore (whitespace separated) |
86126
87127<!-- markdownlint-enable MD013 -->
88128
0 commit comments