Skip to content

Add GitHub Actions CI (hardened, supersedes #6) - #9

Merged
jiriknesl merged 3 commits into
masterfrom
ci/github-actions-v2
Apr 27, 2026
Merged

Add GitHub Actions CI (hardened, supersedes #6)#9
jiriknesl merged 3 commits into
masterfrom
ci/github-actions-v2

Conversation

@jiriknesl

Copy link
Copy Markdown
Contributor

Rebased version of #6 with security hardening:

  • Explicit `permissions: contents: read` at workflow scope (least
    privilege; doesn't rely on repo defaults).
  • All actions pinned to full commit SHAs with the version in a trailing
    comment, including the third-party `DeLaGuardo/setup-clojure`. A
    moving tag (or compromised maintainer account) can no longer inject
    new code into the build.

Closes #6

andriytyurnikov and others added 3 commits April 19, 2026 15:17
There was no CI configuration; PRs showed an empty status-check rollup
and the broken `release.sh` was the only automation. Adds:

- `:test-runner` alias in deps.edn, wiring cognitect-labs/test-runner
  so `clojure -M:test-runner` runs the full suite.
- `.github/workflows/test.yml` that checks out, installs Temurin 17 and
  the Clojure CLI, caches `~/.m2` and `~/.gitlibs`, and runs the
  test-runner on every push to master and every pull request.
- Add explicit `permissions: contents: read` so the workflow runs with
  least-privilege regardless of repo defaults.
- Pin all third-party and first-party actions to commit SHAs (with the
  human-readable version in a trailing comment) so a moving tag cannot
  silently inject new code into the build.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jiriknesl
jiriknesl merged commit 3a4c31d into master Apr 27, 2026
@jiriknesl
jiriknesl deleted the ci/github-actions-v2 branch April 27, 2026 08:08
@jiriknesl jiriknesl mentioned this pull request Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants