Skip to content
Closed
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
55 changes: 55 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":disableDependencyDashboard",
],
"baseBranchPatterns": ["main"],
"schedule": ["on the 2nd day of the month"],
"timezone": "America/Sao_Paulo",
"prConcurrentLimit": 10,
"prHourlyLimit": 0,
"labels": ["dependencies"],
"separateMajorMinor": false,
"minimumReleaseAge": "14 days",
"internalChecksFilter": "strict",
"commitMessagePrefix": "[RENOVATE]",
"packageRules": [
{
"matchManagers": ["github-actions"],
"groupName": "github-actions",
"commitMessagePrefix": "[RENOVATE] [CI]",
"pinDigests": true
},
{
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"groupName": "npm-dev-deps",
"commitMessagePrefix": "[RENOVATE] [JS] [DEV]",
"automerge": true,
"automergeType": "pr",
"matchUpdateTypes": ["patch"]
},
{
"matchManagers": ["npm"],
"matchDepTypes": ["dependencies"],
"groupName": "npm-deps",
"commitMessagePrefix": "[RENOVATE] [JS]",
"matchUpdateTypes": ["minor", "patch"]
},
{
"matchManagers": ["npm"],
"matchDepTypes": ["dependencies"],
"matchUpdateTypes": ["major"],
"groupName": "npm-major",
"commitMessagePrefix": "[RENOVATE] [JS] [MAJOR]",
"automerge": false
},
{
"matchPackageNames": ["@types/*"],
"groupName": "types",
"commitMessagePrefix": "[RENOVATE] [JS] [TYPES]",
"automerge": true
}
]
}
4 changes: 2 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/actionlint@v1.7.11
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11
6 changes: 3 additions & 3 deletions .github/workflows/ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

# Copy lockfile + package.json into Docker build context
- run: cp package.json .github/docker/

- uses: docker/login-action@v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .github/docker
file: .github/docker/Dockerfile.ci
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/cve-lite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: cve-lite

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
# Weekly catch-up in case of OSV DB refreshes or missed pushes
- cron: '0 6 * * 1'

permissions:
contents: read
security-events: write

jobs:
scan:
name: cve-lite dependency audit
runs-on: macos-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'

- name: Install cve-lite-cli
run: npm install -g cve-lite-cli

- name: Sync advisory DB (offline cache)
run: cve-lite advisories sync --output ./.cve-lite-cache/osv-vulns.json
continue-on-error: true

- name: Scan dependencies
id: scan
run: |
set +e
cve-lite . --fail-on high --sarif --no-open --report ./cve-report
SCAN_EXIT=$?
echo "scan_exit=$SCAN_EXIT" >> "$GITHUB_OUTPUT"
# Always upload SARIF (even on fail) so findings show in Security tab
ls -la *.sarif 2>/dev/null || true
exit $SCAN_EXIT

- name: Upload SARIF to Code Scanning
if: always() && hashFiles('*.sarif') != ''
uses: github/codeql-action/upload-sarif@411bbbe57033eedfc1a82d68c01345aa96c737d7 # v4
with:
sarif_file: cve-lite-*.sarif
category: cve-lite

- name: Upload HTML report artifact
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: cve-lite-report
path: cve-report/
if-no-files-found: ignore
10 changes: 5 additions & 5 deletions .github/workflows/evals-periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
outputs:
image-tag: ${{ steps.meta.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- id: meta
run: echo "tag=${{ env.IMAGE }}:${{ hashFiles('.github/docker/Dockerfile.ci', 'package.json') }}" >> "$GITHUB_OUTPUT"

- uses: docker/login-action@v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -46,7 +46,7 @@ jobs:
run: cp package.json .github/docker/

- if: steps.check.outputs.exists == 'false'
uses: docker/build-push-action@v6
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .github/docker
file: .github/docker/Dockerfile.ci
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: e2e-gemini
file: test/gemini-e2e.test.ts
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

- name: Upload eval results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: eval-periodic-${{ matrix.suite.name }}
path: ~/.gstack-dev/evals/*.json
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/evals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
outputs:
image-tag: ${{ steps.meta.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- id: meta
run: echo "tag=${{ env.IMAGE }}:${{ hashFiles('.github/docker/Dockerfile.ci', 'package.json') }}" >> "$GITHUB_OUTPUT"

- uses: docker/login-action@v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -46,7 +46,7 @@ jobs:
run: cp package.json .github/docker/

- if: steps.check.outputs.exists == 'false'
uses: docker/build-push-action@v6
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .github/docker
file: .github/docker/Dockerfile.ci
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- name: e2e-gemini
file: test/gemini-e2e.test.ts
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:

- name: Upload eval results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: eval-${{ matrix.suite.name }}
path: ~/.gstack-dev/evals/*.json
Expand All @@ -155,12 +155,12 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 1

- name: Download all eval artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
pattern: eval-*
path: /tmp/eval-results
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Renovate
on:
schedule:
- cron: '0 5 2 * *' # Monthly: 2nd at 05:00 UTC (02:00 BRT)
workflow_dispatch: # Manual trigger

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Self-hosted Renovate
uses: renovatebot/github-action@7e1c0fa7cfd2c3e91b27cdd87ae09a6a0fafb5f2 # v41.0.0
with:
configurationFile: .github/renovate.json5
token: ${{ secrets.GITHUB_TOKEN }}
env:
LOG_LEVEL: info
4 changes: 2 additions & 2 deletions .github/workflows/skill-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
check-freshness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- run: bun install
- name: Check Claude host freshness
run: bun run gen:skill-docs
Expand Down
Loading