Skip to content

Fix GitHub Actions security alerts by adding explicit workflow permissions#23

Merged
haofeif merged 1 commit into
awslabs:mainfrom
gutosantos82:fix/workflow-permissions
Nov 13, 2025
Merged

Fix GitHub Actions security alerts by adding explicit workflow permissions#23
haofeif merged 1 commit into
awslabs:mainfrom
gutosantos82:fix/workflow-permissions

Conversation

@gutosantos82

@gutosantos82 gutosantos82 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

Description

Fixes 3 Medium severity CodeQL security alerts (CWE-275) by adding explicit permissions to the test workflow.

Changes

  • Added permissions: contents: read block to .github/workflows/test-q-cli-provider.yml
  • Limits GITHUB_TOKEN to read-only access, following the principle of least privilege

Security Impact

  • ✅ Resolves alert 2 (workflow-level permissions)
  • ✅ Resolves alert 3 (integration-tests job)
  • ✅ Resolves alert 4 (lint job)

Testing

  • All existing workflow functionality remains unchanged
  • Jobs only need read access for checkout, test, and lint operations
  • Codecov upload uses separate token authentication

Closes alerts 2, 3, 4

@haofeif haofeif requested a review from a team November 13, 2025 23:54

@haofeif haofeif left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approve

@haofeif haofeif merged commit b854fce into awslabs:main Nov 13, 2025
5 checks passed
haofeif added a commit that referenced this pull request Apr 18, 2026
* Add plugin primitive base classes and events

* Refine plugin primitive follow-up comments and tests

* Add plugin registry and package exports

* Tighten plugin registry log assertions

* Wire plugin registry into API lifespan

* Strengthen plugin lifespan integration tests

* Emit plugin events from service layer

* Harden plugin dispatch adapter

* drop orchestration_type as a persistent data type

* address nit comments

* change event naming scheme to be imperative with 'Post' prefix

* Feat/discord plugin (#23)

* Add Discord plugin scaffold

* Tidy Discord plugin scaffold artifacts

* Add Discord plugin lifecycle config

* Broaden development report ignore pattern

* Complete Discord plugin webhook forwarding

* gitignore

* remove mention of design in readme

* improve example plugin documentation

* refactor: remove redundant guard in send_terminal_input endpoint

send_input already checks for None sender_id/orchestration_type/registry
before dispatching the plugin event, so the caller-side branch just
duplicated that logic. Pass the arguments through unconditionally to
match the pattern used by the other plugin-aware endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add cao-plugin skill with hard requirements and hook event reference

Codifies the plugin authoring contract (CaoPlugin subclass, @hook decorator,
cao.plugins entry point, build/install) and catalogs the currently supported
lifecycle and messaging events so future plugin work has a single reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add plugins guide and note example scope

Adds docs/plugins.md covering plugin installation, available events,
troubleshooting, and future improvements. Points plugin authors to the
cao-plugin skill for the full authoring guide.

Also annotates the cao-discord example README to clarify it is a
reference implementation, not an actively maintained plugin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(plugins): add plugin onboarding docs and close review gaps

Address PR #172 review feedback: add examples/plugins/README.md index,
add ## Plugins section to root README, add quick-start walkthrough to
docs/plugins.md, and clean up duplicate install command in the Discord
example README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(plugins): delegate Quick Start setup steps to root README

Replace inline install/launch commands with links to README § Installation
and § Quick Start so plugin docs don't drift from the canonical setup path
(and so prerequisites like tmux/Python versions stay discoverable).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: haofeif <56006724+haofeif@users.noreply.github.com>
erikmackinnon pushed a commit to erikmackinnon/cli-agent-orchestrator that referenced this pull request Apr 20, 2026
* Add plugin primitive base classes and events

* Refine plugin primitive follow-up comments and tests

* Add plugin registry and package exports

* Tighten plugin registry log assertions

* Wire plugin registry into API lifespan

* Strengthen plugin lifespan integration tests

* Emit plugin events from service layer

* Harden plugin dispatch adapter

* drop orchestration_type as a persistent data type

* address nit comments

* change event naming scheme to be imperative with 'Post' prefix

* Feat/discord plugin (awslabs#23)

* Add Discord plugin scaffold

* Tidy Discord plugin scaffold artifacts

* Add Discord plugin lifecycle config

* Broaden development report ignore pattern

* Complete Discord plugin webhook forwarding

* gitignore

* remove mention of design in readme

* improve example plugin documentation

* refactor: remove redundant guard in send_terminal_input endpoint

send_input already checks for None sender_id/orchestration_type/registry
before dispatching the plugin event, so the caller-side branch just
duplicated that logic. Pass the arguments through unconditionally to
match the pattern used by the other plugin-aware endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add cao-plugin skill with hard requirements and hook event reference

Codifies the plugin authoring contract (CaoPlugin subclass, @hook decorator,
cao.plugins entry point, build/install) and catalogs the currently supported
lifecycle and messaging events so future plugin work has a single reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add plugins guide and note example scope

Adds docs/plugins.md covering plugin installation, available events,
troubleshooting, and future improvements. Points plugin authors to the
cao-plugin skill for the full authoring guide.

Also annotates the cao-discord example README to clarify it is a
reference implementation, not an actively maintained plugin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(plugins): add plugin onboarding docs and close review gaps

Address PR awslabs#172 review feedback: add examples/plugins/README.md index,
add ## Plugins section to root README, add quick-start walkthrough to
docs/plugins.md, and clean up duplicate install command in the Discord
example README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs(plugins): delegate Quick Start setup steps to root README

Replace inline install/launch commands with links to README § Installation
and § Quick Start so plugin docs don't drift from the canonical setup path
(and so prerequisites like tmux/Python versions stay discoverable).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: haofeif <56006724+haofeif@users.noreply.github.com>
(cherry picked from commit d472f64)
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.

2 participants