114 Commits

Author SHA1 Message Date
renovate[bot]
fb8884dddd
Update actions/github-script action to v9 2026-04-10 00:26:32 +00:00
Antony Messerli
8180753aec
Disable Trivy vulnerability scanner for arm64
Comment out the Trivy vulnerability scanner step for arm64.
2026-03-23 09:33:39 -05:00
Antony Messerli
f0f9fc72ab
Disable Trivy
https://socket.dev/blog/trivy-docker-images-compromised
2026-03-23 09:32:04 -05:00
Antony Messerli
2f8ef41ea2 Split release.yml into native per-arch builds, fix tagging permissions
- Split single QEMU-based multi-platform build into parallel jobs on
  native runners (ubuntu-latest for amd64, ubuntu-24.04-arm for arm64)
  to fix Illegal instruction crash during npm install
- Add permissions block with contents:write to fix 403 error when
  creating git tags via github-tag-action
- Move version check logic to setup job with outputs so build jobs
  can be skipped when there is nothing to do
- Remove docker/metadata-action in favor of inline labels
- Compute BUILD_DATE in setup job and pass as output (not shell eval
  in YAML)
2026-03-15 15:22:28 -05:00
Antony Messerli
ba3a65050b
Merge pull request #126 from netbootxyz/renovate/docker-metadata-action-6.x
Update docker/metadata-action action to v6
2026-03-15 15:17:04 -05:00
Antony Messerli
022f5385ce
Merge pull request #123 from netbootxyz/renovate/docker-login-action-4.x
Update docker/login-action action to v4
2026-03-15 15:15:54 -05:00
renovate[bot]
1eb1b05f5d
Update docker/metadata-action action to v6 2026-03-15 20:14:38 +00:00
Antony Messerli
0a59543132
Merge pull request #112 from netbootxyz/renovate/actions-checkout-6.x
Update actions/checkout action to v6
2026-03-15 15:14:34 -05:00
Antony Messerli
1c8a7d9c24
Merge pull request #132 from netbootxyz/renovate/aquasecurity-trivy-action-0.x
Update aquasecurity/trivy-action action to v0.35.0
2026-03-15 15:14:06 -05:00
Antony Messerli
534c86b99b
Merge pull request #129 from netbootxyz/renovate/actions-github-script-8.x
Update actions/github-script action to v8
2026-03-15 15:13:49 -05:00
Antony Messerli
a3e18f551e
Merge pull request #125 from netbootxyz/renovate/docker-setup-buildx-action-4.x
Update docker/setup-buildx-action action to v4
2026-03-15 15:13:35 -05:00
Antony Messerli
ff841baf7d
Merge pull request #124 from netbootxyz/renovate/docker-setup-qemu-action-4.x
Update docker/setup-qemu-action action to v4
2026-03-15 15:13:14 -05:00
Antony Messerli
18d690d61b
Merge pull request #127 from netbootxyz/renovate/docker-build-push-action-7.x
Update docker/build-push-action action to v7
2026-03-15 15:12:50 -05:00
Antony Messerli
9619104e55
Update GitHub Artifact Actions (#131)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 15:12:10 -05:00
renovate[bot]
3223f448bd
Update aquasecurity/trivy-action action to v0.35.0 2026-03-15 20:11:47 +00:00
renovate[bot]
e258e62df9
Update GitHub Artifact Actions 2026-03-15 20:09:07 +00:00
renovate[bot]
2e16db943b
Update docker/setup-qemu-action action to v4 2026-03-15 20:09:05 +00:00
renovate[bot]
5c122c0e19
Update docker/setup-buildx-action action to v4 2026-03-15 20:09:03 +00:00
renovate[bot]
a894ab34d9
Update docker/login-action action to v4 2026-03-15 20:09:00 +00:00
renovate[bot]
58561928c2
Update docker/build-push-action action to v7 2026-03-15 20:08:57 +00:00
renovate[bot]
0c5ad37909
Update actions/github-script action to v8 2026-03-15 20:08:54 +00:00
renovate[bot]
e2c3b808a6
Update actions/checkout action to v6 2026-03-15 20:08:51 +00:00
renovate[bot]
4ff0b9b33e
Update aquasecurity/trivy-action action to v0.34.0 [SECURITY] 2026-03-15 20:08:45 +00:00
Antony Messerli
cd1950c036
CI: Use native arm64 runner to fix QEMU build crash (#130)
* CI: Split into native per-arch build jobs to fix QEMU arm64 crash

The arm64 build was failing with 'Illegal instruction (core dumped)'
during npm install because QEMU user-mode emulation doesn't support
all arm64 instructions used by newer Node.js versions.

Split the single multi-platform build job into:
- setup: determines tags, webapp version (shared via outputs)
- build-amd64: builds on ubuntu-latest natively
- build-arm64: builds on ubuntu-24.04-arm natively (no QEMU)
- manifest: merges per-arch digests into multi-arch manifest
- comment: posts PR test instructions

Both architectures get independent Trivy scans. The amd64 and arm64
builds run in parallel so total build time should be similar or faster.

Also pins Trivy CLI to v0.69.3 to work around deleted release assets
from the Trivy supply chain attack (aquasecurity/trivy#10265).

* Address review feedback: fix BUILD_DATE, add permissions, add event fallback

- Compute BUILD_DATE in setup job and pass as output instead of using
  $(date) in build-args YAML which is not evaluated at runtime
- Add explicit permissions block (contents:read, packages:write,
  pull-requests:write) to limit GITHUB_TOKEN scope
- Add else fallback in tag strategy for unsupported event types

* Bump Alpine base image from 3.22.2 to 3.23.3 to clear Trivy CVEs

* Fix Trivy CVEs: upgrade systeminformation to 5.31.0 and zlib to >=1.3.2

- systeminformation 5.27.1->5.31.0: fixes CVE-2025-68154, CVE-2026-26280,
  CVE-2026-26318 (command injection vulnerabilities)
- zlib 1.3.1-r2->1.3.2: fixes CVE-2026-22184 (buffer overflow in untgz)

The systeminformation fix overrides the version pinned by the webapp
upstream (5.27.10) until that repo is updated.

* Fix zlib upgrade: use apk --upgrade to ensure CVE-2026-22184 is resolved

The previous 'apk add zlib>=1.3.2' wasn't upgrading zlib because it
was already installed as a transitive dependency. Use --upgrade flag
to force apk to pull the latest available version (1.3.2-r0).

* Fix Trivy arm64 scan: set TRIVY_PLATFORM to match image architecture

Trivy defaults to linux/amd64 when resolving remote image digests.
On the arm64 build job, the pushed digest is a single-platform arm64
image, so Trivy fails with 'no child with platform linux/amd64'.
Setting TRIVY_PLATFORM=linux/arm64 resolves this.
2026-03-15 15:08:28 -05:00
Antony Messerli
ecd624b2bb Pin Trivy CLI to v0.69.3 to work around deleted release assets
Trivy releases v0.27.0-v0.69.1 were deleted as part of a supply chain
attack on 2026-03-01 (aquasecurity/trivy#10265). Pin the CLI version
explicitly so the action does not try to download missing assets.
2026-03-15 14:27:30 -05:00
Copilot
dab4b8137b
CI: Fix injection risk, tag validation, Trivy gating, and Dockerfile layer consolidation (#128)
* Initial plan

* Address review feedback: fix injection risk, validate tag_suffix, rename step, conditional Trivy exit-code, single Dockerfile layer

Co-authored-by: antonym <245007+antonym@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: antonym <245007+antonym@users.noreply.github.com>
2026-03-15 14:23:00 -05:00
Antony Messerli
4884908c2b CI Improvements for testing images
* Drop forced chown during copy
* Adding PR Template
2025-12-06 13:26:38 -06:00
Antony Messerli
769929c965
Merge pull request #104 from netbootxyz/renovate/anothrnick-github-tag-action-1.x
Update anothrNick/github-tag-action action to v1.75.0
2025-10-17 02:35:31 -05:00
Antony Messerli
0403161859
Merge pull request #103 from netbootxyz/renovate/actions-checkout-5.x
Update actions/checkout action to v5
2025-10-17 02:35:08 -05:00
renovate[bot]
0f6cd6012c
Update aquasecurity/trivy-action action to v0.33.1 2025-09-03 16:56:01 +00:00
renovate[bot]
cfec03ba8b
Update anothrNick/github-tag-action action to v1.75.0 2025-08-22 18:40:51 +00:00
renovate[bot]
2b22b05f8f
Update actions/checkout action to v5 2025-08-11 14:45:40 +00:00
Antony Messerli
64a3ba83d3
Merge pull request #98 from netbootxyz/renovate/aquasecurity-trivy-action-0.x
Update aquasecurity/trivy-action action to v0.32.0
2025-07-13 22:33:41 -05:00
Antony Messerli
9b8984312c
Create claude.yml 2025-07-13 22:32:12 -05:00
renovate[bot]
11c7e185f7
Update aquasecurity/trivy-action action to v0.32.0 2025-07-04 10:52:34 +00:00
Antony Messerli
df298e7c32 Remove gosu so that ports can bind
Remove gosu so that ports can bind using root and then switch running
state to nbxyz
2025-06-19 10:18:03 -05:00
Antony Messerli
218529357a CI Workflow fixes 2025-06-12 01:46:26 -05:00
Antony Messerli
85f53d046a Fix tag selection logic in release workflow
Replace alphabetical tag selection with version-aware filtering to properly
identify the latest nbxyz version tag instead of selecting SHA hashes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-12 01:35:08 -05:00
Antony Messerli
83032a815d Revert "Fix CI build failure in release workflow (#89)"
This reverts commit 2f85e905643182ed9bab38c1449742941b61a239.
2025-06-12 01:27:25 -05:00
Antony Messerli
2455598b62 Revert "Fix CI build failure and tag creation issues in release workflow"
This reverts commit b51678638789f6d49747060d517ce587e13833f1.
2025-06-12 01:27:12 -05:00
Antony Messerli
b516786387 Fix CI build failure and tag creation issues in release workflow
- Add fetch-tags: true to ensure git tags are available during checkout
- Improve tag existence checking with proper git rev-parse verification
- Add pre-check to prevent attempting to create tags that already exist
- Fix tag creation logic to handle existing tags gracefully

Resolves both the 'git rev-list' exit code 129 error and the 'Reference
already exists' error in the release workflow.
2025-06-12 01:21:18 -05:00
Antony Messerli
2f85e90564
Fix CI build failure in release workflow (#89)
- Add fetch-tags: true to ensure git tags are available during checkout
- Add error handling to git rev-list command to prevent script failure
  when referenced tag doesn't exist in the repository

Resolves the 'git rev-list' exit code 129 error in the release workflow.
2025-06-12 01:11:42 -05:00
renovate[bot]
c6a7fe04dd
Update aquasecurity/trivy-action action to v0.31.0 2025-06-03 11:05:14 +00:00
renovate[bot]
6a1ebe2cf2
Update anothrNick/github-tag-action action to v1.73.0 2025-05-07 19:54:39 +00:00
renovate[bot]
f4a3ad92e7
Update aquasecurity/trivy-action action to v0.30.0 2025-03-14 06:51:34 +00:00
Antony Messerli
7398f3120c
Merge pull request #63 from netbootxyz/renovate/actions-checkout-digest
Update actions/checkout digest to 11bd719
2025-02-15 18:17:57 -06:00
Antony Messerli
176a4fd879 Test trivy for PRs 2025-02-01 18:19:28 -06:00
Antony Messerli
9d31824572 Revert arm change due to potential QEMU issue
https://github.com/netbootxyz/docker-netbootxyz/issues/74
2024-10-24 09:24:07 -05:00
Antony Messerli
6e228de407
Bump alpine version, test arm7 2024-10-23 18:09:53 -05:00
renovate[bot]
ed75100926
Update actions/checkout digest to 11bd719 2024-10-23 16:37:51 +00:00