Add SC Environment Impact Workflow#2053
Merged
MichaelMraka merged 1 commit intoRedHatInsights:masterfrom Feb 12, 2026
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a new non-blocking GitHub Actions workflow that runs on pushes and pull requests to master, invoking a shared reusable workflow to detect security compliance environment-impacting changes and notify both the PR and the SC assessor Slack channel. Sequence diagram for SC environment impact workflow executionsequenceDiagram
actor Developer
participant GitHubRepo
participant SCEnvironmentCheckWorkflow
participant SharedSCImpactWorkflow
participant PRActions
participant SlackWebhook
Developer->>GitHubRepo: Push commit or open/update PR targeting master
GitHubRepo->>SCEnvironmentCheckWorkflow: Trigger on push or pull_request
SCEnvironmentCheckWorkflow->>SharedSCImpactWorkflow: call-reusable-workflow job (with SC_ASSESSOR_SLACK_URL)
SharedSCImpactWorkflow->>GitHubRepo: Read contents (contents read)
SharedSCImpactWorkflow->>PRActions: Analyze changes for SC environment impact
PRActions-->>SharedSCImpactWorkflow: Impact assessment result
alt Impactful changes detected
SharedSCImpactWorkflow->>PRActions: Create informational PR comment (pull-requests write)
SharedSCImpactWorkflow->>SlackWebhook: Post notification to SC assessor Slack channel
else No impactful changes
SharedSCImpactWorkflow-->>PRActions: No comment created
SharedSCImpactWorkflow-->>SlackWebhook: No message sent
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The workflow description says it checks PRs, but the triggers include both
pushandpull_requestonmaster; if you don’t intend Slack notifications and PR comments on direct pushes tomaster, consider removing thepushtrigger or clarifying the intent in the comments.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The workflow description says it checks PRs, but the triggers include both `push` and `pull_request` on `master`; if you don’t intend Slack notifications and PR comments on direct pushes to `master`, consider removing the `push` trigger or clarifying the intent in the comments.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2053 +/- ##
==========================================
- Coverage 59.39% 59.36% -0.03%
==========================================
Files 134 134
Lines 8678 8678
==========================================
- Hits 5154 5152 -2
- Misses 2977 2979 +2
Partials 547 547
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adding a workflow to check for impactful SC environment changes. This will drop a comment in PRs to notify the author of impactful changes and notify the rosa core team slack channel. This is non-blocking and informational to better prevent issues during release week for the security compliance environment. HCMSEC-2787 Signed-off-by: Stephen Adams <sadams@redhat.com>
90219d0 to
c39aafb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding a workflow to check for impactful SC environment changes. This will drop a comment in PRs to notify the author of impactful changes and notify the rosa core team slack channel. This is non-blocking and informational to better prevent issues during release week for the security compliance environment.
HCMSEC-2787
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
CI: