Skip to content

Conversation

@xenoscopic
Copy link
Collaborator

This PR fixes a few issues in CI:

  • It relocates the "beta" preamble from the security report itself to the check summary in security-review checks
  • It fixes an off-by-one error in update-pins when limiting new PRs
  • It flags pull_request_number as required when running security-review-changes via workflow_dispatch

Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
Signed-off-by: Jacob Howard <jacob.howard@docker.com>
@xenoscopic xenoscopic requested a review from a team as a code owner October 29, 2025 23:38
@xenoscopic xenoscopic merged commit 9e30e7b into docker:main Oct 29, 2025
1 check passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 176 to +183
failed_servers+=("$server (update)")
fi
else
# Check PR limit before creating new PR.
if [ -n "$new_pr_limit" ] && [ "$new_pr_count" -ge "$new_pr_limit" ]; then
echo "New PR quota reached ($new_pr_limit); skipping $server."
continue
fi

Choose a reason for hiding this comment

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

P1 Badge Avoid pushing branches when PR quota prevents creation

The new PR limit is now enforced only after the branch is pushed. When the quota has been reached, the loop still applies the patch, commits, and force-pushes automation/update-pin-${server}, but then skips gh pr create. On the next run the code sees the pushed branch, finds that servers/${server}/server.yaml already pins the target commit, and immediately skips the server, so a PR is never opened for that update. Previously the check happened before pushing, allowing a later run to create the PR when the quota permitted. This regression causes updates processed after hitting the quota to be silently dropped until a newer upstream commit appears.

Useful? React with 👍 / 👎.

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