-
Notifications
You must be signed in to change notification settings - Fork 98
ci: reduce PR feedback loop with targeted caching #1294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe136df
7ad405b
b7a1d6f
5dc32d9
2c7d1dd
a00a1c0
7c9a714
e12e42f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,18 +13,18 @@ jobs: | |||||||||||||||
|
|
||||||||||||||||
| steps: | ||||||||||||||||
| - name: Checkout | ||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||||||||||||||||
|
|
||||||||||||||||
| - name: Setup Node.js | ||||||||||||||||
| uses: actions/setup-node@v6 | ||||||||||||||||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | ||||||||||||||||
| with: | ||||||||||||||||
| node-version: '22' | ||||||||||||||||
| cache: 'npm' | ||||||||||||||||
| cache-dependency-path: docs/package-lock.json | ||||||||||||||||
|
|
||||||||||||||||
| - name: Install Vale | ||||||||||||||||
| run: | | ||||||||||||||||
| curl -sfL https://github.com/errata-ai/vale/releases/download/v3.12.1/vale_3.12.1_Linux_64-bit.tar.gz | tar xz -C /usr/local/bin vale | ||||||||||||||||
| curl -sfL https://github.com/errata-ai/vale/releases/download/v3.14.1/vale_3.14.1_Linux_64-bit.tar.gz | tar xz -C /usr/local/bin vale | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: fd -type f -name "docs-lint.yml" .github/workflows/Repository: ambient-code/platform Length of output: 235 🏁 Script executed: cat -n .github/workflows/docs-lint.yml | sed -n '20,35p'Repository: ambient-code/platform Length of output: 640 🌐 Web query:
💡 Result: Vale (from Errata AI) provides SHA-256 checksums for verifying downloaded release binaries on GitHub at https://github.com/errata-ai/vale/releases. Each release includes a vale_{version}_checksums.txt file listing SHA-256 hashes for all platform-specific archives (e.g., Linux, macOS, Windows tar.gz/zip files). To verify: 1. Download the desired release assets from a tag page, e.g., https://github.com/errata-ai/vale/releases/tag/v3.13.1 2. Download vale_3.13.1_checksums.txt 3. Run: sha256sum -c vale_3.13.1_checksums.txt (Linux/macOS) or equivalent on Windows (e.g., certutil -hashfile). Releases are GPG-signed commits (e.g., key ID B44A6E0381723797). Official docs recommend binary downloads but do not explicitly detail checksum verification steps; it follows standard GitHub practices. No separate PGP-signed binaries or Cosign noted. Citations:
Add checksum verification for Vale binary.
Recommended pattern - name: Install Vale
run: |
- curl -sfL https://github.com/errata-ai/vale/releases/download/v3.14.1/vale_3.14.1_Linux_64-bit.tar.gz | tar xz -C /usr/local/bin vale
+ VALE_VERSION="3.14.1"
+ VALE_TGZ="/tmp/vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
+ VALE_URL="https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
+ curl -fsSL -o "${VALE_TGZ}" "${VALE_URL}"
+ curl -fsSL "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_checksums.txt" | grep "Linux_64-bit.tar.gz" | sha256sum -c -
+ tar -xzf "${VALE_TGZ}" -C /usr/local/bin vale📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| - name: Install npm tools | ||||||||||||||||
| run: npm install -g markdownlint-cli2 cspell | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add explicit least-privilege
permissionsfor this workflow.This workflow does not scope
GITHUB_TOKENpermissions explicitly. Add a minimalpermissionsblock (contents: read) at workflow or job level.Proposed minimal permission scope
name: Docs Lint on: pull_request: paths: - 'docs/**' + +permissions: + contents: read jobs: lint: name: Lint Documentation🤖 Prompt for AI Agents