Repository navigation
Fix/ci actions hardening - #1781
Open
francisdouglas-ux wants to merge 4 commits into
Open
francisdouglas-ux wants to merge 4 commits into
francisdouglas-ux wants to merge 4 commits into
Conversation
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>
|
@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! 🚀 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.gitattributesforJunirezz/YieldVault-RWA:#1588): Replacesactions-rs/toolchain@v1withdtolnay/rust-toolchainandactions/cache@v3withSwatinem/rust-cache@v2infrontend.yml(contracts-ci) andrust-wasm.yml, and upgradesnightly-benchmarks.ymltoactions/cache@v4(zero remainingactions-rs/oractions/cache@v3references).#1589): Pins third-party actions inrelease.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), andcypress.yml(cypress-io/github-action) to full 40-character commit SHAs with version comments so Dependabotgithub-actionsupdates continue working.monitoring/docker-compose.yml(#1586): Pins Prometheus and Grafana images to explicit version tags, moves the Grafana admin password toGRAFANA_ADMIN_PASSWORD(monitoring/.envgitignored, documented inmonitoring/.env.exampleandmonitoring/README.md), fixes the backend build context to use the repository rootDockerfile, and defines thetemposervice and Grafana datasource so the OTLP endpoint resolves cleanly..gitattributesRules (#1656): Adds explicit*.sh,*.yml,*.yaml, and*.mdeol=lfrules alongside existing* text=auto eol=lfnormalization.Verification
actions-rs/oractions/cache@v3occurrences across.github/.docker compose -f monitoring/docker-compose.yml configexits0..gitattributesrules viagit check-attr.