Skip to content

🌱 add cases for alerts in dangerous workflow pattern detection #4722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdamKorcz
Copy link
Contributor

What kind of change does this PR introduce?

(Is it a bug fix, feature, docs update, something else?)

feature

What is the current behavior?

What is the new behavior (if this is a feature change)?

This PR adds cases that from my analysis are controllable by low-privileged users and can therefore be weaponized into command execution. These are fields of the alert object, see eg. secret_scanning_alert.alert (ref). The weaponizable fields are mainly user names or emails or comments in the context of alerts which can be controlled by lower-privileged users.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

Does this PR introduce a user-facing change?

yes

Detect alert fields in dangerous workflows checks.

@AdamKorcz AdamKorcz requested a review from a team as a code owner July 24, 2025 12:01
@AdamKorcz AdamKorcz requested review from spencerschrock and raghavkaul and removed request for a team July 24, 2025 12:01
@AdamKorcz AdamKorcz temporarily deployed to integration-test July 24, 2025 12:01 — with GitHub Actions Inactive
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.31%. Comparing base (353ed60) to head (5de8b16).
Report is 200 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4722      +/-   ##
==========================================
+ Coverage   66.80%   68.31%   +1.50%     
==========================================
  Files         230      249      +19     
  Lines       16602    18907    +2305     
==========================================
+ Hits        11091    12916    +1825     
- Misses       4808     5131     +323     
- Partials      703      860     +157     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant