Skip to content

gha: Add docker cagent PR reviewer workflows#7014

Open
vvoland wants to merge 1 commit into
docker:masterfrom
vvoland:work-gha
Open

gha: Add docker cagent PR reviewer workflows#7014
vvoland wants to merge 1 commit into
docker:masterfrom
vvoland:work-gha

Conversation

@vvoland
Copy link
Copy Markdown
Collaborator

@vvoland vvoland commented May 29, 2026

@vvoland vvoland self-assigned this May 29, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vvoland vvoland added this to the 29.5.3 milestone May 29, 2026
@vvoland vvoland requested a review from thaJeztah May 29, 2026 13:58
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Comment on lines +13 to +22
review:
if: |
(github.event_name == 'issue_comment' &&
github.event.comment.user.login != 'docker-agent' &&
github.event.comment.user.login != 'docker-agent[bot]' &&
github.event.comment.user.type != 'Bot' &&
!contains(github.event.comment.body, '<!-- cagent-review -->') &&
!contains(github.event.comment.body, '<!-- cagent-review-reply -->')) ||
github.event.workflow_run.conclusion == 'success'
uses: docker/cagent-action/.github/workflows/review-pr.yml@3f5dc9969f307d3c76acb7e9ccaefdd96bd62f4b # v1.5.4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes me wonder if these kind of conditions could be handled by the action itself, but I guess that's a chicken and egg case (action would always run, but then to find it didn't have to run) 🤔

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

do we need someone else to give it a second glance?

@vvoland
Copy link
Copy Markdown
Collaborator Author

vvoland commented May 29, 2026

Perhaps @crazy-max wants to take a look?

@vvoland vvoland requested a review from crazy-max May 29, 2026 14:48
@vvoland
Copy link
Copy Markdown
Collaborator Author

vvoland commented May 29, 2026

Hmm don't we have zizmor check here? I see it complains about it on moby; moby/moby#52727 (comment)

@thaJeztah
Copy link
Copy Markdown
Member

No, don't think we have it here (we should add it though)

issues: write # Create security incident issues if secrets detected
checks: write # (Optional) Show review progress as a check run
id-token: write # Required for OIDC authentication to AWS Secrets Manager
actions: read # Download artifacts from trigger workflow
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

only necessary on private repo but doesn't hurt to keep it

@crazy-max
Copy link
Copy Markdown
Member

crazy-max commented May 29, 2026

Hmm don't we have zizmor check here? I see it complains about it on moby; moby/moby#52727 (comment)

Yes would be nice to have zizmor setup here, I'm not yet sure of the impact, specially workflow_run is kinda dangerous

Edit: Ah didn't read moby/moby#52727 (comment) but yeah this is by design

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants