Skip to content

ci: add compliance check workflow for org ruleset#37

Merged
chitcommit merged 1 commit intomainfrom
ci/add-compliance-check
Mar 16, 2026
Merged

ci: add compliance check workflow for org ruleset#37
chitcommit merged 1 commit intomainfrom
ci/add-compliance-check

Conversation

@chitcommit
Copy link
Contributor

Summary

  • Adds compliance-check.yml calling the reusable compliance workflow
  • Workflow name set to compliance to match org-level required status check context
  • Unblocks PR merges that were blocked by missing compliance check

Test plan

  • Verify compliance check appears in PR status checks
  • Confirm PR is no longer blocked by org ruleset

🤖 Generated with Claude Code

Adds compliance-check.yml that calls the reusable compliance workflow.
The workflow name is 'compliance' to match the org-level required status
check context, unblocking PR merges.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions
Copy link

  1. @coderabbitai review
  2. @copilot review
  3. @codex review
  4. @claude review
    Adversarial review request: evaluate security, policy bypass paths, regression risk, and merge-gating bypass attempts.

@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

Warning

Rate limit exceeded

@chitcommit has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 27 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 52e93f84-7fc7-4b5c-acaf-310caf74ec41

📥 Commits

Reviewing files that changed from the base of the PR and between cda56a1 and b38f44d.

📒 Files selected for processing (1)
  • .github/workflows/compliance-check.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/add-compliance-check
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chitcommit chitcommit merged commit 32eb7d3 into main Mar 16, 2026
15 checks passed
@chitcommit chitcommit deleted the ci/add-compliance-check branch March 16, 2026 17:56
Comment on lines +10 to +15
uses: CHITTYOS/chittyops/.github/workflows/reusable-compliance-check.yml@main
with:
service_name: 'chittycommand'
tier: 3
check_health: true
domain: 'command.chitty.cc'

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 2 days ago

In general, to fix this category of issue you add a permissions: block either at the top (root) of the workflow to apply to all jobs, or under a specific job to apply only there. The block should grant the minimum scopes needed. For workflows that only run checks and do not need to write back to the repository, contents: read is a good baseline. If the reusable workflow needs additional permissions (for example, to update issues or pull requests), those can be added explicitly.

For this specific workflow, the simplest and safest change without altering behavior of the reusable workflow is to declare minimal read-only permissions at the workflow root, just under the name: key and before on:. This ensures the GITHUB_TOKEN available to the compliance job (and thus to the called reusable workflow) is constrained to read repository contents by default. If the reusable workflow requires more permissions, they can still be granted there; our change does not prevent that, but documents and constrains the default from this workflow’s side. Concretely, in .github/workflows/compliance-check.yml, add:

permissions:
  contents: read

between lines 1 and 3. No imports or additional methods are needed, since this is a YAML configuration change only.

Suggested changeset 1
.github/workflows/compliance-check.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/compliance-check.yml b/.github/workflows/compliance-check.yml
--- a/.github/workflows/compliance-check.yml
+++ b/.github/workflows/compliance-check.yml
@@ -1,4 +1,6 @@
 name: compliance
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -1,4 +1,6 @@
name: compliance
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
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