Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
99062cf
ci: pin third-party actions and fail Codecov uploads closed
cursoragent Nov 10, 2026
2d94ba5
docs: record Codecov and third-party action SHA pins
cursoragent Nov 10, 2026
0742971
ci: fail the assets coverage job closed
cursoragent Nov 10, 2026
cd3f8ad
ci: lock Codecov quotes, CLI pin, and coverage permissions
cursoragent Nov 10, 2026
b21db56
ci: upload Codecov with OIDC and flatten block-scalar uses
cursoragent Nov 10, 2026
32707f6
ci: parse workflow policy checks and split Codecov upload jobs
cursoragent Nov 10, 2026
7ffdbf8
Merge remote-tracking branch 'origin/main' into cursor/pin-codecov-ac…
cursoragent Nov 10, 2026
6b076b1
ci: parse codecov policy from YAML and pin artifact actions
cursoragent Nov 10, 2026
a837dbe
Pin coverage HTML artifact upload and extend codecov workflow policy …
cursoragent Nov 10, 2026
e6e5c66
docs: align CI artifact pin wording with workflow policy
cursoragent Nov 10, 2026
66a0c44
ci: close codecov workflow policy gaps
cursoragent Nov 10, 2026
281e231
ci: lock codecov upload edges and kani args
cursoragent Nov 10, 2026
d252603
ci: lock coverage job end, kani inputs, and checkout credentials
cursoragent Nov 10, 2026
7b7fe92
docs: cite the pinned kani action and the coverage job end
cursoragent Nov 10, 2026
d923f01
ci: pin kani command and working-directory
cursoragent Nov 10, 2026
d299652
docs: name coverage workflows on checkout persist-credentials rule
cursoragent Nov 10, 2026
d202993
ci: pin the coverage producer job key set
cursoragent Nov 10, 2026
590b047
docs: cite the rust-ci-setup toolchain commit
cursoragent Nov 10, 2026
1329f24
ci: lock the tarpaulin script and pin kani actions
cursoragent Nov 10, 2026
be6ee82
docs: record the tarpaulin script and kani checkout rule
cursoragent Nov 10, 2026
8bc112c
ci: match locked workflow steps to their canonical form
cursoragent Nov 10, 2026
964265b
docs: state the exact step rule and correct the ui cites
cursoragent Nov 10, 2026
25df619
ci: lock coverage, editor, and Kani jobs to canonical step lists
cursoragent Nov 10, 2026
b4c36c5
ci: lock Kani job shape, the summary gate, and report uploads
cursoragent Nov 10, 2026
6748532
ci: lock summary job shape and report publish names
cursoragent Nov 10, 2026
530ee5e
ci: lock local action shapes and reusable workflow uses
cursoragent Nov 11, 2026
10a7ddd
ci: fail closed on coverage upload names and local uses
cursoragent Nov 11, 2026
3788edd
ci: reject non-printable upload names and dead expression scans
cursoragent Nov 11, 2026
c0121c4
ci: pin the upload-name range and exact editor test permissions
cursoragent Nov 11, 2026
156ee73
ci: pin permission spelling messages and the publish-path name check
cursoragent Nov 11, 2026
6d9b1fa
ci: pin repeated permission keys and the publish-path name check
cursoragent Nov 11, 2026
3d3a490
ci: pin the middle of an upload name and repeated workflow keys
cursoragent Nov 11, 2026
fdb41cd
docs: correct the sun-position and heightmap mutant notes
cursoragent Nov 11, 2026
d1914ad
ci: reject a repeated mapping key and pin the workflow loader
cursoragent Nov 11, 2026
00b91a7
terrain: reject a heightmap resolution above 32769
cursoragent Nov 11, 2026
151289c
ci: match trigger-key spellings and lock workflow key sets
cursoragent Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/rust-ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
using: composite
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: ${{ inputs.toolchain }}
components: ${{ inputs.components }}
Expand All @@ -51,7 +51,7 @@ runs:
fi

- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11

- name: Enable sccache
shell: bash
Expand All @@ -76,7 +76,7 @@ runs:
# CPU pin lives in that file next to the Windows stack flags.

- name: Cache cargo registry (one key per OS, save on main only)
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: "."
shared-key: ${{ runner.os }}-astraweave
Expand All @@ -86,4 +86,4 @@ runs:

- name: Install cargo-nextest
if: inputs.install-nextest == 'true'
uses: taiki-e/install-action@nextest
uses: taiki-e/install-action@7c48f0a661edab95fdc666d1526d9ef945205245 # nextest
2 changes: 1 addition & 1 deletion .github/actions/rust-nightly/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
echo "Pinned nightly: $channel"

- name: Install pinned nightly
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: ${{ steps.pin.outputs.channel }}
components: ${{ inputs.components }}
51 changes: 42 additions & 9 deletions .github/workflows/aw-editor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions: {}

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
test:
name: Test AW Editor (${{ matrix.os }})
permissions:
contents: read
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
runs-on: ${{ matrix.os }}
timeout-minutes: 45
# Skip if editor has known compilation issues - allows CI to pass while editor is being fixed
Expand All @@ -35,7 +39,9 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Rust CI setup
uses: ./.github/actions/rust-ci-setup
Expand Down Expand Up @@ -99,15 +105,19 @@ jobs:
# Coverage job (optional - Linux only for speed)
coverage:
name: Test Coverage
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 45

steps:
- name: Checkout Repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@1.89.0
uses: dtolnay/rust-toolchain@599c45df1a24c1c63ae1129a7e59f46654b8fb66 # 1.89.0
with:
components: llvm-tools-preview

Expand All @@ -117,18 +127,41 @@ jobs:
sudo apt-get install -y pkg-config libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libegl1-mesa-dev libudev-dev libasound2-dev

- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
run: cargo install cargo-llvm-cov --version 0.9.1 --locked

- name: Generate Coverage Report
run: |
cargo llvm-cov --package aw_editor --lib --lcov --output-path lcov.info
continue-on-error: true


- name: Upload coverage report
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: aw-editor-lcov
path: lcov.info
retention-days: 30

codecov:
name: Codecov upload
needs: coverage
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Download coverage report
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: aw-editor-lcov
path: .

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
if: success()
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
files: ./lcov.info
disable_search: true
flags: aw_editor
name: aw-editor-coverage
continue-on-error: true # Don't fail if codecov upload fails
version: v11.3.2
fail_ci_if_error: true
use_oidc: true
6 changes: 3 additions & 3 deletions .github/workflows/benchmark-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
fetch-depth: 0 # Need full history for gh-pages

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@1.89.0
uses: dtolnay/rust-toolchain@599c45df1a24c1c63ae1129a7e59f46654b8fb66 # 1.89.0
with:
components: clippy

- name: Cache Rust Dependencies
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
shared-key: ${{ runner.os }}-astraweave
cache-targets: false
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
EOF

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
retention-days: 30

- name: Store benchmark results for tracking
uses: benchmark-action/github-action-benchmark@v1.22.2
uses: benchmark-action/github-action-benchmark@4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
if: >-
steps.merge.outputs.healthy == 'true' &&
github.event_name == 'push' &&
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
gh-repository: github.com/${{ github.repository }}

- name: Comment benchmark results on PR
uses: benchmark-action/github-action-benchmark@v1.22.2
uses: benchmark-action/github-action-benchmark@4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
if: >-
steps.merge.outputs.healthy == 'true' &&
github.event_name == 'pull_request' &&
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/benchmark_alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.89.0
uses: dtolnay/rust-toolchain@599c45df1a24c1c63ae1129a7e59f46654b8fb66 # 1.89.0

- name: Install system dependencies
run: |
Expand All @@ -45,10 +45,10 @@ jobs:
bc jq coreutils

- name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.11
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11

- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
shared-key: ${{ runner.os }}-astraweave
cache-targets: false
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:

- name: Deploy dashboard to GitHub Pages
if: steps.merge.outputs.healthy == 'true' && success()
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libudev-dev

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v4
uses: github/codeql-action/autobuild@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:${{matrix.language}}"
81 changes: 67 additions & 14 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions: {}

jobs:
coverage:
name: Generate Code Coverage
permissions:
contents: read
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
runs-on: ubuntu-latest
timeout-minutes: 45
# Coverage may fail on some configurations - non-blocking
continue-on-error: true


steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Rust CI setup
uses: ./.github/actions/rust-ci-setup
Expand All @@ -33,31 +37,80 @@ jobs:
run: |
cd tools/astraweave-assets
cargo tarpaulin --out Xml --output-dir coverage --exclude-files 'src/main.rs' --exclude-files 'tests/*'


- name: Upload coverage XML
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-xml
path: tools/astraweave-assets/coverage/cobertura.xml
retention-days: 30

codecov:
name: Codecov upload
needs: coverage
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Download coverage XML
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: coverage-xml
path: tools/astraweave-assets/coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
files: ./tools/astraweave-assets/coverage/cobertura.xml
disable_search: true
flags: astraweave-assets
name: astraweave-assets-coverage
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

version: v11.3.2
fail_ci_if_error: true
use_oidc: true

coverage-html:
name: HTML coverage report
needs: coverage
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Rust CI setup
uses: ./.github/actions/rust-ci-setup

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin --version 0.35.2 --locked

- name: Download coverage XML
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: coverage-xml
path: tools/astraweave-assets/coverage

- name: Generate HTML report
if: always()
run: |
cd tools/astraweave-assets
cargo tarpaulin --out Html --output-dir coverage-html --exclude-files 'src/main.rs' --exclude-files 'tests/*'

- name: Upload HTML coverage report
if: always()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-report
path: tools/astraweave-assets/coverage-html
retention-days: 30

- name: Coverage summary
if: always()
run: |
Expand All @@ -69,7 +122,7 @@ jobs:
echo "**Overall Coverage:** ${COVERAGE}%" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Target: 80%+ (Production Ready)" >> $GITHUB_STEP_SUMMARY

if (( $(echo "$COVERAGE >= 80" | bc -l) )); then
echo "✅ **Status:** PASS (meets target)" >> $GITHUB_STEP_SUMMARY
else
Expand Down
Loading
Loading