Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

[BUG] README example: issue_comment trigger can run CLA workflow on non-PR issues #180

Description

@AndrasZiegler

Describe the bug
The README workflow example uses on: issue_comment with an if condition that checks only for the CLA magic phrase.
issue_comment events are fired for both pull requests and normal issues, so posting the phrase on a normal issue can run the CLA action without PR context.

To Reproduce

  1. Configure the workflow as shown in the README (issue_comment + current if condition).
  2. Open a normal GitHub Issue (not a PR).
  3. Add this comment to the issue: I have read the CLA Document and I hereby sign the CLA.
  4. Observe that the workflow is triggered for that issue comment.

Expected behavior
The CLA workflow should only run for:

  • pull_request_target events, or
  • issue_comment events where the comment is on a pull request (github.event.issue.pull_request exists).

Non-PR issue comments should not trigger CLA processing.

Screenshots
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions