Skip to content

Fix/ci actions hardening - #1781

Open
francisdouglas-ux wants to merge 4 commits into
Junirezz:mainfrom
francisdouglas-ux:fix/ci-actions-hardening
Open

francisdouglas-ux wants to merge 4 commits into
Junirezz:mainfrom
francisdouglas-ux:fix/ci-actions-hardening

Conversation

@francisdouglas-ux

Copy link
Copy Markdown
Contributor

Closes #1586, Closes #1588, Closes #1589, Closes #1656

Summary

Replaces deprecated Rust/cache actions, pins third-party GitHub Actions to full 40-character commit SHAs, hardens monitoring/docker-compose.yml, and adds explicit line-ending rules in .gitattributes for Junirezz/YieldVault-RWA:

  1. Replace Deprecated Actions (#1588): Replaces actions-rs/toolchain@v1 with dtolnay/rust-toolchain and actions/cache@v3 with Swatinem/rust-cache@v2 in frontend.yml (contracts-ci) and rust-wasm.yml, and upgrades nightly-benchmarks.yml to actions/cache@v4 (zero remaining actions-rs/ or actions/cache@v3 references).
  2. Pin Third-Party Actions to Commit SHAs (#1589): Pins third-party actions in release.yml (orhun/git-cliff-action, peter-evans/create-pull-request, softprops/action-gh-release), secret-scanning.yml (gitleaks/gitleaks-action), load-tests.yml (grafana/k6-action), and cypress.yml (cypress-io/github-action) to full 40-character commit SHAs with version comments so Dependabot github-actions updates continue working.
  3. Harden monitoring/docker-compose.yml (#1586): Pins Prometheus and Grafana images to explicit version tags, moves the Grafana admin password to GRAFANA_ADMIN_PASSWORD (monitoring/.env gitignored, documented in monitoring/.env.example and monitoring/README.md), fixes the backend build context to use the repository root Dockerfile, and defines the tempo service and Grafana datasource so the OTLP endpoint resolves cleanly.
  4. Explicit .gitattributes Rules (#1656): Adds explicit *.sh, *.yml, *.yaml, and *.md eol=lf rules alongside existing * text=auto eol=lf normalization.

Verification

  • Action & Cache Audit: Verified zero remaining actions-rs/ or actions/cache@v3 occurrences across .github/.
  • Monitoring Compose Validation: Verified docker compose -f monitoring/docker-compose.yml config exits 0.
  • Line-Ending Attributes: Verified .gitattributes rules via git check-attr.

godamongstmen897 and others added 4 commits November 22, 2026 18:19
actions-rs is unmaintained; replace it with dtolnay/rust-toolchain@stable
(components/targets inputs carried over) in frontend.yml's contracts-ci job
and rust-wasm.yml's rust-test and wasm-build jobs. Replace the matching
actions/cache@v3 Cargo-registry caches with Swatinem/rust-cache@v2, which is
purpose-built for cargo caching and reports cache hits on repeat runs.
nightly-benchmarks.yml's cache (no toolchain-action pairing) is bumped to
actions/cache@v4 with its existing key/path config kept as-is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…rkflows

Pin the mutable-tag third-party actions called out in the issue to their
full 40-character commit SHAs, with the version kept as a trailing comment:
gitleaks/gitleaks-action (secret-scanning.yml), softprops/action-gh-release,
orhun/git-cliff-action and peter-evans/create-pull-request (release.yml,
which has contents: write and pull-requests: write), grafana/k6-action
(load-tests.yml), and cypress-io/github-action (cypress.yml).
release.yml and secret-scanning.yml are fully pinned as the highest-priority
workflows. Dependabot's existing github-actions ecosystem entry
(.github/dependabot.yml) will keep opening update PRs for these pinned SHAs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pin prometheus (v2.55.1) and grafana (11.4.0) to version tags instead of
:latest. Move the Grafana admin password to GRAFANA_ADMIN_PASSWORD, read
from monitoring/.env (gitignored; monitoring/.env.example documents it) via
env substitution. Fix the backend build block to use the repo-root
Dockerfile (build context ../backend had no Dockerfile; the real one lives
at the repo root and expects to be built from there). Add a tempo service
(grafana/tempo:2.6.1, local storage, OTLP on 4317/4318) so
OTEL_EXPORTER_OTLP_ENDPOINT=http://tempo:4318 resolves to something, plus a
Tempo datasource in Grafana's provisioning and a short monitoring/README.md.

`docker compose -f monitoring/docker-compose.yml config` succeeds.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
….gitattributes

.gitattributes already normalizes everything to LF via "* text=auto eol=lf"
(added for issue Junirezz#1374), which already satisfies this issue's behavioral
goal. Add explicit *.sh/*.yml/*.yaml/*.md entries so that intent is spelled
out per the issue's acceptance criteria and survives if the wildcard rule is
ever narrowed; verified with `git check-attr` that affected files still
resolve to eol=lf.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Nov 22, 2026

Copy link
Copy Markdown

@francisdouglas-ux Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants