Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
68 changes: 35 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# RunsOn label convention for heavy jobs that arrive with the code (not used
# yet: every job below is a tiny gate job on ubuntu-latest):
# runs-on: runs-on=${{ github.run_id }}-${{ github.run_attempt }}-<job>/runner=4cpu-linux-x64
# The mise binary is pinned below (version and the sha256 of the extracted binary). Bump both by hand
# together, and keep min_version in mise.toml at or below it; Renovate updates the tools in mise.toml and mise.lock.
name: CI

on:
Expand Down Expand Up @@ -28,19 +30,15 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Install gitleaks
env:
# renovate: datasource=github-releases depName=gitleaks/gitleaks
GITLEAKS_VERSION: 8.30.1
GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb
run: |
curl -fsSLo gitleaks.tar.gz "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
echo "${GITLEAKS_SHA256} gitleaks.tar.gz" | sha256sum -c -
tar -xzf gitleaks.tar.gz gitleaks && rm gitleaks.tar.gz
- uses: jdx/mise-action@236a21c3b91f5db6d4e174b348674a0f0caac06d # v5.2.9
Comment thread
shuni-bot[bot] marked this conversation as resolved.
Resolved
with:
version: 2026.11.9
Comment thread
omercnet marked this conversation as resolved.
Resolved
sha256: f13f3e5ec88807e0161669b3aa07a91d84478cdf1e95b5b92b63f85a25d42395
install_args: gitleaks
- name: Scan commits
run: ./gitleaks git --config .gitleaks.toml --redact --verbose .
run: gitleaks git --config .gitleaks.toml --redact --verbose .
- name: Scan tree
run: ./gitleaks dir --config .gitleaks.toml --redact --verbose .
run: gitleaks dir --config .gitleaks.toml --redact --verbose .

workflow-policy:
name: Workflow Policy
Expand All @@ -50,25 +48,17 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: jdx/mise-action@236a21c3b91f5db6d4e174b348674a0f0caac06d # v5.2.9
with:
version: 2026.11.9
sha256: f13f3e5ec88807e0161669b3aa07a91d84478cdf1e95b5b92b63f85a25d42395
install_args: actionlint zizmor
- name: Run actionlint
env:
# renovate: datasource=github-releases depName=rhysd/actionlint
ACTIONLINT_VERSION: 1.7.12
ACTIONLINT_SHA256: 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8
run: |
curl -fsSLo actionlint.tar.gz "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
echo "${ACTIONLINT_SHA256} actionlint.tar.gz" | sha256sum -c -
tar -xzf actionlint.tar.gz actionlint && rm actionlint.tar.gz
./actionlint
run: actionlint
- name: Run zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
env:
# renovate: datasource=github-releases depName=zizmorcore/zizmor
ZIZMOR_VERSION: 1.30.1
with:
advanced-security: false
annotations: true
version: ${{ env.ZIZMOR_VERSION }}
GH_TOKEN: ${{ github.token }}
run: zizmor --format=github .

changes:
name: Changes
Expand Down Expand Up @@ -100,10 +90,16 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- uses: jdx/mise-action@236a21c3b91f5db6d4e174b348674a0f0caac06d # v5.2.9
with:
node-version-file: .nvmrc
cache: npm
version: 2026.11.9
sha256: f13f3e5ec88807e0161669b3aa07a91d84478cdf1e95b5b92b63f85a25d42395
install_args: node
Comment thread
shuni-bot[bot] marked this conversation as resolved.
Resolved
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: npm-${{ runner.os }}-
- run: npm ci --ignore-scripts
- run: npm run lint
- run: npm run typecheck
Expand All @@ -119,10 +115,16 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
- uses: jdx/mise-action@236a21c3b91f5db6d4e174b348674a0f0caac06d # v5.2.9
with:
version: 2026.11.9
sha256: f13f3e5ec88807e0161669b3aa07a91d84478cdf1e95b5b92b63f85a25d42395
install_args: node
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
node-version-file: .nvmrc
cache: npm
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: npm-${{ runner.os }}-
- run: npm ci --ignore-scripts
- name: Fresh-runner preflight (IPv6 loopback)
run: |
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ Grimoire is developed in the open, through small pull requests into `main`.
recording of the new behaviour (and a diagram or terminal capture where it
helps), and a bug-fix pull request includes before and after shots. If a
visual makes no sense, say "not applicable" in the description and why.
Attach files with the GitHub CLI: for a feature, `gh pr create --attach './login.png#The new login page'`;
for a bug fix, `gh pr edit 12 --attach ./before.png --attach ./after.png`.
- Never commit secrets or credentials.
- Contributions are accepted under the same licence as the project, the
Apache License 2.0 (inbound equals outbound); there is no contributor
agreement.

## Set-up

Install [mise](https://mise.jdx.dev) and run `mise install`: `mise.toml` and `mise.lock` pin Node and the checking tools (gitleaks, actionlint, zizmor) for local work and for CI. Then run `npm ci`.

To report a security issue, do not open a public issue: follow
[SECURITY.md](SECURITY.md).

Expand Down
152 changes: 152 additions & 0 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# The single source of tool versions for local work and CI (`mise install`). mise.lock pins the exact
# downloads with their checksums; Renovate keeps both current.
min_version = "2026.11.9" # the lockfile format (version 4) needs this release or newer

[tools]
node = "26"
bun = "1.4.4" # pinned ahead of the move from npm to bun; no command runs it yet
gitleaks = "8.30.1"
actionlint = "1.7.12"
zizmor = "1.30.1"

[settings]
lockfile = true
Comment thread
shuni-bot[bot] marked this conversation as resolved.
Resolved
22 changes: 3 additions & 19 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,14 @@
"major"
],
"automerge": false
},
{
"description": "Pinned tool binaries carry a sha256 that must be bumped by hand in the same PR",
"matchDepNames": [
"gitleaks/gitleaks",
"rhysd/actionlint"
],
"automerge": false
}
],
"minimumReleaseAge": "3 days",
"internalChecksFilter": "strict",
"customManagers": [
{
"customType": "regex",
"description": "Version pins in workflow step env vars, e.g. the gitleaks binary (sha256 must be bumped in the same PR; the checksum step fails otherwise)",
"managerFilePatterns": ["/^\\.github/workflows/.+\\.ya?ml$/"],
"matchStrings": [
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+\\w+_VERSION: (?<currentValue>\\S+)"
],
"extractVersionTemplate": "^v?(?<version>.*)$"
}
],
"github-actions": {
"pinDigests": true
},
"mise": {
"enabled": true
}
}