You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ci: supply-chain & secrets hardening — gitleaks, Dependabot, zizmor (#117)
Adds the three cross-cutting gates from #117 on top of RigForge's existing
SHA-pinned actions and commit-verified XMRig build. Scope is only the gaps,
not a redo of that work.
- gitleaks: new Security workflow scans the full git history for committed
secrets (pool creds, tokens, the #113 stratum access-password) on every push
and PR, with a matching pre-commit hook. Binary is version+checksum pinned,
mirroring the shellcheck/shfmt installs.
- Dependabot: .github/dependabot.yml for the github-actions ecosystem only
(RigForge has no pip/npm/docker deps) — keeps the action pins current and
surfaces advisories.
- zizmor: audits the workflows for template injection, over-broad GITHUB_TOKEN,
and credential persistence. Hardened ci.yml/release.yml to a read-only default
token and persist-credentials: false on checkout so the audit is clean.
The broader pre-commit hook set (shellcheck/shfmt/yamllint/markdownlint +
freebies) is left to #118, which extends .pre-commit-config.yaml.
Validated locally: gitleaks clean over full history, zizmor reports no findings.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(security): enable zizmor online audits + weekly schedule
Run zizmor with online audits on (its default) so the known-vulnerable-actions
audit cross-references the actions we pin against the GitHub Advisory Database —
a CVE disclosed against a pinned action now fails the gate, not just structural
issues. GH_TOKEN is the built-in read-only token (advisory data is public; it's
only for API access).
Add a weekly schedule so a freshly-published advisory trips against main even
with no open PRs (the online audit is time-varying by design). gitleaks is
skipped on the scheduled tick — history doesn't change between pushes.
Complements Dependabot: zizmor blocks the merge, Dependabot opens the bump.
Validated: zizmor online reports no findings against the current pins.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: adopt the develop/main branch model (mirrors Pithead)
Pithead uses develop as the default integration branch and main as the release
branch; mirror that here (develop is now the repo default).
- ci.yml + security.yml: run on push to [main, develop] (PRs already run on any
base via the unfiltered pull_request trigger).
- coverage: diff-cover now compares against the PR's actual base branch
(github.base_ref, falling back to the pushed branch) instead of a hardcoded
origin/main — so patch coverage stays correct once develop diverges from main.
- CONTRIBUTING: document the two-branch model; PRs target develop.
- RELEASING: build the release commit on develop, fast-forward into main, tag
from main. develop is merged to main at each release (1.1 onward).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments