Skip to content

Add CI permissions, Dependabot config, and CODEOWNERS for workflow security#402

Open
annzhang-db wants to merge 1 commit intomainfrom
fix/ci-security-hardening
Open

Add CI permissions, Dependabot config, and CODEOWNERS for workflow security#402
annzhang-db wants to merge 1 commit intomainfrom
fix/ci-security-hardening

Conversation

@annzhang-db
Copy link
Copy Markdown
Contributor

@annzhang-db annzhang-db commented Mar 29, 2026

  • Add permissions: contents: read to all 4 CI workflows (main.yml, ty.yml, ai-sdk-provider.yml, langchainjs.yml). Without an explicit permissions block these workflows inherit repo defaults, which may grant write access. Scoping to read-only limits blast radius from any workflow compromise.

  • Add .github/CODEOWNERS requiring security-team review for any changes to .github/workflows/. Previously any maintainer with merge rights could modify release pipelines without a designated security reviewer.

  • Add .github/dependabot.yml with entries for github-actions (weekly) and npm packages in both JS integration directories. This provides automated PRs to keep SHA-pinned action references current and flags npm audit alerts.

Co-authored-by: Isaac

…curity

- Add `permissions: contents: read` to all 4 CI workflows (main.yml, ty.yml,
  ai-sdk-provider.yml, langchainjs.yml). Without an explicit permissions block
  these workflows inherit repo defaults, which may grant write access. Scoping
  to read-only limits blast radius from any workflow compromise.

- Add .github/CODEOWNERS requiring security-team review for any changes to
  .github/workflows/. Previously any maintainer with merge rights could
  modify release pipelines without a designated security reviewer.

- Add .github/dependabot.yml with entries for github-actions (weekly) and
  npm packages in both JS integration directories. This provides automated
  PRs to keep SHA-pinned action references current and flags npm audit alerts.

Co-authored-by: Isaac
@annzhang-db annzhang-db changed the title Add CI permissions, Dependabot config, and CODEOWNERS for workflow se… Add CI permissions, Dependabot config, and CODEOWNERS for workflow security Mar 29, 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.

1 participant