Skip to content

Commit 405a560

Browse files
RoyLinRoyLin
authored andcommitted
ci: fix trivy-action ref (@master, 0.24.0 doesn't exist) + rewrite ci.yml
ci.yml was failing at workflow-validation (0s) for many runs; rewrite with an explicit dtolnay/rust-toolchain (rustfmt+clippy) and plain step names. image.yml's trivy step used a non-existent action tag, failing the release job at setup before the image built.
1 parent a47ab81 commit 405a560

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111

12+
# Host-buildable parts only: the contracts lib + shared types + parsers. The eBPF crate +
13+
# collector need nightly + bpf-linker (a self-hosted BPF runner) and are not built here.
1214
jobs:
13-
# Host-buildable parts: the contracts lib + shared types + parsers. The eBPF crate +
14-
# collector need nightly + bpf-linker (a self-hosted BPF runner) and are not built here.
1515
lib:
16-
name: lib + parsers (fmt, clippy, test)
16+
name: lib + parsers
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: rustfmt (whole workspace — parse-only, no build)
21-
run: cargo fmt --all -- --check
22-
- name: clippy (host-buildable crates)
23-
run: cargo clippy -p a3s-observer -p a3s-observer-common -- -D warnings
24-
- name: test (contracts lib + common: SNI / ppid / cgroup parsers)
25-
run: cargo test -p a3s-observer -p a3s-observer-common
20+
- uses: dtolnay/rust-toolchain@stable
21+
with:
22+
components: rustfmt, clippy
23+
- run: cargo fmt --all -- --check
24+
- run: cargo clippy -p a3s-observer -p a3s-observer-common -- -D warnings
25+
- run: cargo test -p a3s-observer -p a3s-observer-common

.github/workflows/image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
sbom: true # SBOM attestation
5353
# Supply chain: scan for fixable CRITICAL CVEs, then keyless-sign the pushed digest.
5454
- name: Trivy image scan (report fixable CRITICAL/HIGH)
55-
uses: aquasecurity/trivy-action@0.24.0
55+
uses: aquasecurity/trivy-action@master # TODO: pin to a release SHA once chosen
5656
with:
5757
image-ref: ${{ steps.img.outputs.name }}@${{ steps.build.outputs.digest }}
5858
severity: CRITICAL,HIGH

0 commit comments

Comments
 (0)