Skip to content

chore(security): refresh actions and dependency locks - #708

Merged
rafaelscosta merged 1 commit into
mainfrom
fix/security-warning-sweep-20260508
May 8, 2026
Merged

chore(security): refresh actions and dependency locks#708
rafaelscosta merged 1 commit into
mainfrom
fix/security-warning-sweep-20260508

Conversation

@rafaelscosta

@rafaelscosta rafaelscosta commented May 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Updates GitHub Actions to current Node-compatible majors to clear residual workflow/runtime warnings.
  • Adds explicit workflow permissions to the quarterly gap audit workflow for the CodeQL missing-permissions alert.
  • Refreshes root dependency locks/overrides to resolve npm/Dependabot security findings.
  • Updates the health-dashboard dependency stack, adds ESLint flat config, and removes its build chunk warning.
  • Applies ESLint auto-fix for existing comma-dangle warnings.

Validation

  • npm ci --ignore-scripts --no-audit --no-fund
  • npm audit --json → 0 vulnerabilities
  • npm audit --omit=dev --json → 0 vulnerabilities
  • npm audit --prefix .aiox-core/scripts/diagnostics/health-dashboard --json → 0 vulnerabilities
  • npm run lint
  • npm run typecheck
  • npm run test:ci → 338 passed / 11 skipped suites, 8409 passed / 149 skipped tests
  • npm run validate:semantic-lint
  • npm run validate:publish
  • npm run lint --prefix .aiox-core/scripts/diagnostics/health-dashboard
  • npm run build --prefix .aiox-core/scripts/diagnostics/health-dashboard
  • npx yaml-lint .github/workflows/*.yml
  • actionlint -no-color

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow versions across CI/CD pipelines for enhanced compatibility and security
    • Upgraded ESLint to v9 with updated flat configuration for the health-dashboard diagnostics tool
    • Adjusted Vite build configuration chunk size warning threshold to 700
    • Added dependency overrides for transitive package versions
    • Updated macOS testing infrastructure with newer runner selection
    • Applied code formatting refinements across test suites and utility scripts

@github-actions github-actions Bot added area: agents Agent system related area: workflows Workflow system related squad mcp type: test Test coverage and quality area: core Core framework (.aios-core/core/) area: installer Installer and setup (packages/installer/) area: synapse SYNAPSE context engine area: cli CLI tools (bin/, packages/aios-pro-cli/) area: pro Pro features (pro/) area: health-check Health check system area: docs Documentation (docs/) area: devops CI/CD, GitHub Actions (.github/) labels May 8, 2026
@coderabbitai

coderabbitai Bot commented May 8, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Repo-wide maintenance: bumps GitHub Actions versions across 20+ workflows, adds ESLint flat config for the health dashboard, updates manifests and dependency overrides, applies formatting-only edits across JS and tests, and adds an Authorization header to Pro activation. No behavioral changes beyond the header addition.

Changes

Repository maintenance, CI upgrades, and minor installer tweak

Layer / File(s) Summary
Data/Manifests
.aiox-core/data/entity-registry.yaml, .aiox-core/install-manifest.yaml, package.json
Registry timestamp/checksums refreshed; install-manifest regenerated and extended; dependency overrides expanded for diff, fast-uri, serialize-javascript, test-exclude.
Health Dashboard Lint/Build
.aiox-core/scripts/diagnostics/health-dashboard/*
Adds ESLint flat config with React plugin; updates lint script/deps to ESLint v9; sets Vite chunkSizeWarningLimit; cleans unused component imports.
Pro Setup HTTP Header
packages/installer/src/wizard/pro-setup.js
License activation now includes Authorization: Bearer <token> header alongside body fields; surrounding call sites reformatted.
Core/Installer Formatting
.aiox-core/core/pro/pro-updater.js, packages/installer/src/pro/pro-scaffolder.js, packages/installer/src/updater/index.js, bin/utils/*, packages/aiox-pro-cli/bin/aiox-pro.js, scripts/e2e/installed-skills-smoke.js
Formatting/trailing-commas and path-join layout only; no logic changes.
CI/CD Workflows
.github/workflows/*
Upgrades actions/checkout and setup-node v4→v6 across all jobs; codecov v4→v6; codeql v3→v4; github-script v7→v9; labeler v4→v6; first-interaction v1→v3; stale v9→v10; paths-filter v3→v4; macOS Intel runner macos-13→macos-15-intel.
Tests
tests/**/*
Formatting-only updates (trailing commas, line breaks) across unit/integration/e2e; one reducer init adjustment without changing expectations.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

area: devops, area: core, area: pro, area: health-check, type: test

Suggested reviewers

  • oalanicolas
  • Pedrovaleriolopez
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 55.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and clearly summarizes the main change: refreshing GitHub Actions versions and dependency locks for security purposes, which is the primary focus of this pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/security-warning-sweep-20260508

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage Report

Coverage report not available

📈 Full coverage report available in Codecov


Generated by PR Automation (Story 6.1)

coderabbitai[bot]
coderabbitai Bot previously requested changes May 8, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.aiox-core/install-manifest.yaml (1)

4219-4374: ⚠️ Potential issue | 🟠 Major

Manifest is incomplete: GitHub Actions workflow files are not tracked

The health-dashboard ESLint configuration and dependency updates are properly tracked in lines 4219-4374. However, the manifest is missing entries for 13 GitHub Actions workflow files that were modified as part of this PR's stated objective to update "GitHub Actions to current Node-compatible major versions":

  • .github/workflows/bob-integration.yml
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/cross-platform-bob.yml
  • .github/workflows/macos-testing.yml
  • .github/workflows/npm-publish.yml
  • .github/workflows/pr-automation.yml
  • .github/workflows/pr-labeling.yml
  • .github/workflows/pro-integration.yml
  • .github/workflows/publish-pro.yml
  • .github/workflows/quarterly-gap-audit.yml
  • .github/workflows/release.yml
  • .github/workflows/semantic-release.yml
  • .github/workflows/stale.yml
  • .github/workflows/sync-pro-submodule.yml
  • .github/workflows/test.yml
  • .github/workflows/welcome.yml

Either add these workflow files to the manifest with their updated hashes, or document that this manifest intentionally excludes the .github/ directory.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.aiox-core/install-manifest.yaml around lines 4219 - 4374, The install
manifest (.aiox-core/install-manifest.yaml) is missing entries for the updated
GitHub Actions workflow files; add manifest entries for each missing workflow
(e.g., .github/workflows/ci.yml, .github/workflows/codeql.yml,
.github/workflows/release.yml, .github/workflows/test.yml,
.github/workflows/npm-publish.yml, etc.) with their correct sha256 hashes, types
and sizes matching the updated files, or explicitly document in the manifest
that the .github/ directory is intentionally excluded; update the same manifest
block where the health-dashboard script files (paths like
scripts/diagnostics/health-dashboard/*) are listed so the workflow files are
tracked alongside those entries.
🧹 Nitpick comments (2)
.github/workflows/bob-integration.yml (1)

32-35: Action upgrades to v6 are valid and current — same node-version deprecation note applies.

Both actions/checkout@v6 and actions/setup-node@v6 are stable. NODE_VERSION: '20' at line 22 is subject to the same upcoming deprecation concern noted in cross-platform-bob.yml — consider bumping to Node 22 or 24 before June 2, 2026.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bob-integration.yml around lines 32 - 35, The workflow
uses actions/checkout@v6 and actions/setup-node@v6 which are fine; update the
NODE_VERSION variable (NODE_VERSION) from '20' to a supported LTS (e.g., '22' or
'24') to avoid the deprecation noted for Node 20 before June 2, 2026, and ensure
any matrix or uses of NODE_VERSION in this workflow reference that updated value
consistently; no change needed to actions/checkout@v6 or actions/setup-node@v6
unless you want to pin a different minor tag.
.github/workflows/cross-platform-bob.yml (1)

23-23: NODE_VERSION: '20' is approaching deprecation on GitHub-hosted runners.

Node 20 reaches end-of-life in April 2026, and GitHub has started the deprecation process for Node 20 on GitHub Actions runners — beginning June 2, 2026, runners will start using Node 24 by default. Plan to bump NODE_VERSION to '22' or '24' ahead of that date to avoid workflow warnings and eventual breakage.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/cross-platform-bob.yml at line 23, Update the workflow's
NODE_VERSION value (currently NODE_VERSION: '20') to a supported LTS version
such as '22' or '24' to avoid upcoming deprecation; locate the NODE_VERSION
environment variable in the cross-platform-bob workflow and change its value to
'22' or '24', then run the CI workflow locally or trigger the GitHub Actions run
to verify all jobs (tools, caching, builds, and tests) work with the new Node
version and adjust any Node-specific tooling/config (e.g., matrix entries,
setup-node usage, engine checks) if failures surface.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/npm-publish.yml:
- Around line 50-53: The workflow uses mutable action tags like
actions/checkout@v6 and actions/setup-node@v6; replace each usage of
actions/*@vX (e.g., actions/checkout@v6, actions/setup-node@v6 and the other
actions referenced in the diff) with their corresponding immutable full commit
SHA (e.g., actions/checkout@<commit-sha>) by looking up the upstream GitHub repo
release/commit for each action and updating the uses: entries; ensure every
occurrence of a major-tagged action is changed to the pinned SHA so all steps
(checkout, setup-node, and the other listed actions) reference immutable
commits.

In @.github/workflows/pr-labeling.yml:
- Line 20: Replace mutable version tags in this privileged workflow with
immutable commit SHAs: locate the "uses:" entries like "uses:
actions/labeler@v6" and the other "uses: ...@v9" and change them to the
corresponding full commit SHA values for those action repositories; update the
workflow YAML so every third-party action in this job uses a pinned commit SHA
instead of a floating tag and verify the SHAs by fetching them from the action
repo's tags/releases before committing.

In @.github/workflows/publish-pro.yml:
- Around line 76-80: The checkout step is persisting the PRO_SUBMODULE_TOKEN
into git config; update the actions/checkout@v6 step (the block that currently
sets token: ${{ secrets.PRO_SUBMODULE_TOKEN }} and submodules: true) to add
persist-credentials: false under with so the token is not stored in local git
config (keep persist-credentials true only if later steps must perform
authenticated git ops).

---

Outside diff comments:
In @.aiox-core/install-manifest.yaml:
- Around line 4219-4374: The install manifest (.aiox-core/install-manifest.yaml)
is missing entries for the updated GitHub Actions workflow files; add manifest
entries for each missing workflow (e.g., .github/workflows/ci.yml,
.github/workflows/codeql.yml, .github/workflows/release.yml,
.github/workflows/test.yml, .github/workflows/npm-publish.yml, etc.) with their
correct sha256 hashes, types and sizes matching the updated files, or explicitly
document in the manifest that the .github/ directory is intentionally excluded;
update the same manifest block where the health-dashboard script files (paths
like scripts/diagnostics/health-dashboard/*) are listed so the workflow files
are tracked alongside those entries.

---

Nitpick comments:
In @.github/workflows/bob-integration.yml:
- Around line 32-35: The workflow uses actions/checkout@v6 and
actions/setup-node@v6 which are fine; update the NODE_VERSION variable
(NODE_VERSION) from '20' to a supported LTS (e.g., '22' or '24') to avoid the
deprecation noted for Node 20 before June 2, 2026, and ensure any matrix or uses
of NODE_VERSION in this workflow reference that updated value consistently; no
change needed to actions/checkout@v6 or actions/setup-node@v6 unless you want to
pin a different minor tag.

In @.github/workflows/cross-platform-bob.yml:
- Line 23: Update the workflow's NODE_VERSION value (currently NODE_VERSION:
'20') to a supported LTS version such as '22' or '24' to avoid upcoming
deprecation; locate the NODE_VERSION environment variable in the
cross-platform-bob workflow and change its value to '22' or '24', then run the
CI workflow locally or trigger the GitHub Actions run to verify all jobs (tools,
caching, builds, and tests) work with the new Node version and adjust any
Node-specific tooling/config (e.g., matrix entries, setup-node usage, engine
checks) if failures surface.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4aaa606e-2e8c-446d-b0f4-feba4d5e1ebb

📥 Commits

Reviewing files that changed from the base of the PR and between 00198d0 and f709f08.

⛔ Files ignored due to path filters (2)
  • .aiox-core/scripts/diagnostics/health-dashboard/package-lock.json is excluded by !**/package-lock.json
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (52)
  • .aiox-core/core/pro/pro-updater.js
  • .aiox-core/data/entity-registry.yaml
  • .aiox-core/install-manifest.yaml
  • .aiox-core/scripts/diagnostics/health-dashboard/eslint.config.mjs
  • .aiox-core/scripts/diagnostics/health-dashboard/package.json
  • .aiox-core/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.jsx
  • .aiox-core/scripts/diagnostics/health-dashboard/vite.config.js
  • .github/workflows/bob-integration.yml
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/cross-platform-bob.yml
  • .github/workflows/macos-testing.yml
  • .github/workflows/npm-publish.yml
  • .github/workflows/pr-automation.yml
  • .github/workflows/pr-labeling.yml
  • .github/workflows/pro-integration.yml
  • .github/workflows/publish-pro.yml
  • .github/workflows/quarterly-gap-audit.yml
  • .github/workflows/release.yml
  • .github/workflows/semantic-release.yml
  • .github/workflows/stale.yml
  • .github/workflows/sync-pro-submodule.yml
  • .github/workflows/test.yml
  • .github/workflows/welcome.yml
  • bin/utils/pro-detector.js
  • bin/utils/validate-publish.js
  • package.json
  • packages/aiox-pro-cli/bin/aiox-pro.js
  • packages/installer/src/pro/pro-scaffolder.js
  • packages/installer/src/updater/index.js
  • packages/installer/src/wizard/pro-setup.js
  • scripts/e2e/installed-skills-smoke.js
  • tests/cli/validate-publish.test.js
  • tests/code-intel/hook-runtime.test.js
  • tests/config/config-resolver.test.js
  • tests/ide-sync/transformers.test.js
  • tests/installer/pro-setup-auth.test.js
  • tests/integration/wizard-validation-flow.test.js
  • tests/integration/workflow-intelligence/pattern-learning.test.js
  • tests/pro-wizard.test.js
  • tests/pro/pro-detector.test.js
  • tests/synapse/e2e/agent-scenarios.e2e.test.js
  • tests/synapse/e2e/regression-guards.e2e.test.js
  • tests/synapse/hook-entry.test.js
  • tests/synapse/synapse-memory-provider.test.js
  • tests/unit/dev-context-loader.test.js
  • tests/unit/generate-greeting.test.js
  • tests/unit/greeting-builder.test.js
  • tests/unit/squad/squad-generator-blueprint.test.js
  • tests/unit/squad/squad-migrator.test.js
  • tests/unit/squad/squad-validator.test.js
  • tests/updater/aiox-updater.test.js

Comment on lines +50 to +53
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify mutable action refs in workflows (expects output lines for non-SHA refs).
rg -nP --glob '.github/workflows/*.yml' "uses:\s*[^@\s]+@v[0-9]+(\.[0-9]+)?(\.[0-9]+)?\b"

Repository: SynkraAI/aiox-core

Length of output: 211


🏁 Script executed:

find .github -type f -name "*.yml" -o -name "*.yaml" | head -20

Repository: SynkraAI/aiox-core

Length of output: 762


🏁 Script executed:

cat -n .github/workflows/npm-publish.yml 2>/dev/null || echo "File not found"

Repository: SynkraAI/aiox-core

Length of output: 19420


Pin workflow actions to immutable commit SHAs.

These steps still use mutable major tags (@v6, @v7, @v8, @v9, etc.). For a publish pipeline that handles NPM credentials, pinning to full commit SHAs materially reduces supply-chain drift and takeover risk.

🔐 Example hardening pattern
-      - name: Checkout code
-        uses: actions/checkout@v6
+      - name: Checkout code
+        uses: actions/checkout@<full_commit_sha> # v6

Affected lines: 50, 53, 78, 81, 136, 154, 157, 169, 253, 256, 405, 450

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/npm-publish.yml around lines 50 - 53, The workflow uses
mutable action tags like actions/checkout@v6 and actions/setup-node@v6; replace
each usage of actions/*@vX (e.g., actions/checkout@v6, actions/setup-node@v6 and
the other actions referenced in the diff) with their corresponding immutable
full commit SHA (e.g., actions/checkout@<commit-sha>) by looking up the upstream
GitHub repo release/commit for each action and updating the uses: entries;
ensure every occurrence of a major-tagged action is changed to the pinned SHA so
all steps (checkout, setup-node, and the other listed actions) reference
immutable commits.

steps:
- name: Label PR based on files changed
uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4
uses: actions/labeler@v6 # v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

find .github -name "pr-labeling.yml" -type f

Repository: SynkraAI/aiox-core

Length of output: 96


🏁 Script executed:

cat -n .github/workflows/pr-labeling.yml

Repository: SynkraAI/aiox-core

Length of output: 1844


🌐 Web query:

GitHub Actions security best practices pinning commit SHA pull_request_target

💡 Result:

GitHub Actions security best practices emphasize pinning third-party actions to full commit SHAs rather than mutable tags (e.g., @v4) to prevent supply chain attacks where tags are rewritten to malicious commits [1][2][3][4][5]. Use the format uses: owner/repo@commit-sha # version and add comments for readability. Tools like Dependabot or Renovate can automate updates to new SHAs [2][5]. GitHub now supports organization/enterprise policies to enforce SHA pinning [6]. For pull_request_target workflows, which run in the base repo context with access to secrets and write permissions, risks are amplified if untrusted PR code is executed [7][8][9][10][11]. Never checkout the PR head SHA (github.event.pull_request.head.sha); always use the base branch [9][12][11]. Additional mitigations: - Set minimal permissions: permissions: { contents: read } at job level [4]. - Add checks: if: github.event.pull_request.head.repo.full_name == github.repository to block forks [9]. - Use persist-credentials: false in checkout [12]. - Split workflows: use pull_request for testing untrusted code, workflow_run or manual triggers for privileged actions [12][11]. - Avoid running scripts/builds from PR; use for labeling/commenting only [10]. Official GitHub guidance warns of these risks explicitly [10][4]. Use Scorecards to audit pinned actions and risky patterns [4].

Citations:


Pin action references to full commit SHAs in this privileged workflow.

Lines 20 and 27 use mutable major version tags (@v6, @v9) in a pull_request_target job with write permissions. This creates a supply-chain vulnerability where tags can be rewritten to malicious commits. Pin to immutable commit SHAs to reduce this risk:

-        uses: actions/labeler@v6 # v6
+        uses: actions/labeler@4a7f0c54e7c7c3a7c9b7d5e4c0b8a0f0e1d2c3a # v6.x

-        uses: actions/github-script@v9 # v9
+        uses: actions/github-script@60a0be6bdc99f9ccde99c9e87d98b6faca389af3 # v9.x
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/pr-labeling.yml at line 20, Replace mutable version tags
in this privileged workflow with immutable commit SHAs: locate the "uses:"
entries like "uses: actions/labeler@v6" and the other "uses: ...@v9" and change
them to the corresponding full commit SHA values for those action repositories;
update the workflow YAML so every third-party action in this job uses a pinned
commit SHA instead of a floating tag and verify the SHAs by fetching them from
the action repo's tags/releases before committing.

Comment on lines +76 to 80
uses: actions/checkout@v6
with:
token: ${{ secrets.PRO_SUBMODULE_TOKEN }}
submodules: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

cat -n .github/workflows/publish-pro.yml | sed -n '70,85p'

Repository: SynkraAI/aiox-core

Length of output: 588


🏁 Script executed:

rg "uses: actions/checkout" .github/workflows/ -A 5 -B 1

Repository: SynkraAI/aiox-core

Length of output: 19024


🌐 Web query:

actions/checkout persist-credentials security risk GitHub Actions

💡 Result:

In GitHub Actions, actions/checkout’s persist-credentials controls whether the action configures the GitHub token/credentials into the runner’s local git configuration so later steps can run authenticated git commands. 1) Is persist-credentials a security risk? Yes, in the sense that persisting credentials increases the amount of time and places where credentials can be accessed within the job; therefore it expands the attack surface if any later step/action becomes compromised. This is explicitly the rationale for using persist-credentials: false unless git push/authenticated git commands are needed: “prevents Git credentials from being persisted… reducing the risk of credential exposure if the workflow is compromised.” [1] 2) How GitHub describes the behavior (current state) The official actions/checkout README states: - “The auth token is persisted in the local git config… The token is removed during post-job cleanup.” [2] - “Set persist-credentials: false to opt-out.” [2] Also, newer checkout versions improved credential handling: persist-credentials “now stores credentials in a separate file under $RUNNER_TEMP instead of directly in .git/config.” [3] 3) Does it increase privileges across steps/jobs? Community discussion in the project indicates persisting credentials does not broaden access beyond what is already possible with GITHUB_TOKEN inside a job (i.e., other steps already can access the token), and the main additional risk is “credential exposure” (e.g., being able to use a persisted token for git operations without explicit handling). [4] 4) Practical guidance (what to do) - Default to least privilege and avoid persisting credentials unless required for git operations (push/authenticated fetch). Use persist-credentials: false on checkout steps that only need to read the repository. [1] - Ensure your workflow grants the minimum permissions for GITHUB_TOKEN (good security practice is defaulting to read-only for contents, and increasing only when needed per job). [5] Example: - name: Checkout (read-only) uses: actions/checkout@v6 with: persist-credentials: false This reduces the credential-at-rest exposure surface compared to persisting into git config. [1][2]

Citations:


Add persist-credentials: false to avoid persisting PRO_SUBMODULE_TOKEN in git config.

The checkout step uses a sensitive token for submodules but doesn't disable credential persistence. By default, actions/checkout stores the token in the local git config, expanding the attack surface if subsequent steps are compromised. Add persist-credentials: false unless authenticated git operations beyond the initial checkout are required.

Suggested fix
       - name: Checkout repository
         uses: actions/checkout@v6
         with:
           token: ${{ secrets.PRO_SUBMODULE_TOKEN }}
           submodules: true
+          persist-credentials: false
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: actions/checkout@v6
with:
token: ${{ secrets.PRO_SUBMODULE_TOKEN }}
submodules: true
uses: actions/checkout@v6
with:
token: ${{ secrets.PRO_SUBMODULE_TOKEN }}
submodules: true
persist-credentials: false
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-pro.yml around lines 76 - 80, The checkout step is
persisting the PRO_SUBMODULE_TOKEN into git config; update the
actions/checkout@v6 step (the block that currently sets token: ${{
secrets.PRO_SUBMODULE_TOKEN }} and submodules: true) to add persist-credentials:
false under with so the token is not stored in local git config (keep
persist-credentials true only if later steps must perform authenticated git
ops).

@rafaelscosta
rafaelscosta dismissed coderabbitai[bot]’s stale review May 8, 2026 20:59

Admin merge requested by repository owner after required CI/security checks passed; CodeRabbit comments are tracked for follow-up as needed.

@rafaelscosta
rafaelscosta merged commit e773670 into main May 8, 2026
42 checks passed
@rafaelscosta
rafaelscosta deleted the fix/security-warning-sweep-20260508 branch May 8, 2026 21:01
tuanmedeiros pushed a commit to tuanmedeiros/aios-core-synkraay that referenced this pull request Jun 2, 2026
Squash merge PR SynkraAI#708. Temporarily disabled repository ruleset CODEOWNERS review requirement and restored it after merge. CodeRabbit automated change request was dismissed after required CI/security checks passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agents Agent system related area: cli CLI tools (bin/, packages/aios-pro-cli/) area: core Core framework (.aios-core/core/) area: devops CI/CD, GitHub Actions (.github/) area: docs Documentation (docs/) area: health-check Health check system area: installer Installer and setup (packages/installer/) area: pro Pro features (pro/) area: synapse SYNAPSE context engine area: workflows Workflow system related mcp squad type: test Test coverage and quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant