8080 - name : Run SBOM generation
8181 run : task -v sbom
8282 - name : Upload SBOM artifacts
83- uses : actions/upload-artifact@v5
83+ uses : actions/upload-artifact@v7
8484 with :
8585 name : sbom-files
8686 path : |
@@ -89,15 +89,15 @@ jobs:
8989 - name : Check license compliance
9090 run : task -v license-check
9191 - name : Upload license check results
92- uses : actions/upload-artifact@v5
92+ uses : actions/upload-artifact@v7
9393 with :
9494 name : license-check-results
9595 path : license-check.json
9696 if-no-files-found : error
9797 - name : Run vulnerability scan
9898 run : task -v vulnscan
9999 - name : Upload vulnerability scan results
100- uses : actions/upload-artifact@v5
100+ uses : actions/upload-artifact@v7
101101 with :
102102 name : vuln-scan-results
103103 path : vulns.json
@@ -111,11 +111,14 @@ jobs:
111111 # out the repo on Windows. Instead, cookiecutter fetches the template
112112 # directly from the remote branch.
113113 - name : Setup uv
114- uses : astral-sh/setup-uv@v4
114+ uses : astral-sh/setup-uv@v7
115115 with :
116116 python-version : ${{ env.python_version }}
117+ # No checkout in this job (NTFS-illegal chars in template dir), so disable cache
118+ enable-cache : false
119+ ignore-empty-workdir : true
117120 - name : Install Task
118- uses : go-task/setup-task@v1
121+ uses : go-task/setup-task@v2
119122 with :
120123 repo-token : ${{ secrets.GITHUB_TOKEN }}
121124 - name : Generate project from template
@@ -138,11 +141,13 @@ jobs:
138141 curl -fsSL "$scriptUrl" -o "$tmpdir/extract_template_zip.py"
139142 repoDir=$(python3 "$tmpdir/extract_template_zip.py" "$tmpdir/template.zip" "$tmpdir/src")
140143
141- uvx --with gitpython cookiecutter "$repoDir" --no-input --output-dir "$RUNNER_TEMP"
144+ uvx --with gitpython cookiecutter "$repoDir" --no-input \
145+ project_name="ci-test-project" \
146+ --output-dir "$RUNNER_TEMP"
142147 - name : Verify generated project
143148 shell : pwsh
144149 run : |
145- $project = Join-Path $env:RUNNER_TEMP "replace-me "
150+ $project = Join-Path $env:RUNNER_TEMP "ci-test-project "
146151
147152 # Verify the project directory was created
148153 if (-not (Test-Path $project)) {
@@ -219,25 +224,25 @@ jobs:
219224 - name : Initialize generated project
220225 shell : bash
221226 run : |
222- cd "$RUNNER_TEMP/replace-me "
227+ cd "$RUNNER_TEMP/ci-test-project "
223228 task -v init
224229 - name : Run unit tests
225230 shell : bash
226231 # Integration tests require Docker (Linux images) which is not
227232 # available on Windows runners; those are covered by the Linux CI job.
228233 run : |
229- cd "$RUNNER_TEMP/replace-me "
234+ cd "$RUNNER_TEMP/ci-test-project "
230235 task -v unit-test
231236 - name : Build Docker image
232237 shell : bash
233238 run : |
234- cd "$RUNNER_TEMP/replace-me "
239+ cd "$RUNNER_TEMP/ci-test-project "
235240 task -v build
236241 - name : Verify Docker image
237242 shell : bash
238243 run : |
239- docker run --rm zenable-io/replace-me :latest --version
240- docker run --rm zenable-io/replace-me :latest --help
244+ docker run --rm zenable-io/ci-test-project :latest --version
245+ docker run --rm zenable-io/ci-test-project :latest --help
241246 - name : Verify zenable CLI
242247 shell : bash
243248 run : |
0 commit comments