interplane.Get Omega
Read in your language

agent-archive

aien-dev/agent-archive

Brought by drakestapleton

branch main Branches Tags History

agent-archive / .github / workflows / ci.yml

37 lines · 1259 bytes Raw Blame History
1# CI: build and test with the committed Cargo.lock (--locked refuses any silent dependency
2# drift) on a GitHub-hosted runner, with pinned actions and read-only token permissions.
3# A second job writes an SPDX SBOM of the tree so auditors can diff what a commit contains.
4name: CI
5on:
6 pull_request:
7 push:
8 branches: [main]
9permissions:
10 contents: read
11jobs:
12 test:
13 runs-on: ubuntu-latest
14 timeout-minutes: 30
15 steps:
16 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17 with:
18 persist-credentials: false
19 - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
20 - name: Toolchain record
21 run: rustc --version && cargo --version
22 - name: Build
23 run: cargo build --locked --all-targets
24 - name: Test
25 run: cargo test --locked
26 sbom:
27 runs-on: ubuntu-latest
28 timeout-minutes: 10
29 steps:
30 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31 with:
32 persist-credentials: false
33 - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3
34 with:
35 path: .
36 format: spdx-json
37 artifact-name: sbom-${{ github.sha }}.spdx.json