Skip to content

Use default query selectors for Actions suites #18705

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

Merged
merged 7 commits into from
Feb 7, 2025

Conversation

dbartol
Copy link
Contributor

@dbartol dbartol commented Feb 6, 2025

This PR switches the two primary Actions suites to use the same query selectors as all of the other languages. I've adjusted the severity and/or priority of several queries to make sure that they wind up in the right suite. The net changes in suite placement are:

Removed from both suites

These queries are not security-related.

  • if-expression-always-true/critical
  • if-expression-always-true/high
  • unnecessary-use-of-advanced-config

Demoted to security-extended

  • unpinned-tag

Added to security-extended (previously not in either suite)

Most of these are just lower-precision versions of queries from the default suite.

  • unversioned-immutable-action
  • envpath-injection/medium
  • envvar-injection/medium
  • code-injection/medium
  • artifact-poisoning/medium
  • untrusted-checkout/medium

These will wind up in `security-extended`, when previously they were not in any of the standard suites.
This ensures that it will remain in the default suite.
This ensures that it will remain in the default suite.
This ensures that it will be in `security-extended`, but not the default suite.
@Copilot Copilot AI review requested due to automatic review settings February 6, 2025 16:44
@dbartol dbartol requested a review from a team as a code owner February 6, 2025 16:44
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@github-actions github-actions bot added the Actions Analysis of GitHub Actions label Feb 6, 2025
@dbartol dbartol changed the title Dbartol/actions-suite-selectors Use default query selectors for Actions suites Feb 6, 2025
Copy link
Collaborator

@adityasharad adityasharad left a comment

Choose a reason for hiding this comment

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

Looks reasonable, just some questions on change note.

@@ -0,0 +1,17 @@
---
category: queryMetadata
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we indicate somehow this is breaking and that alerts from the moved queries will close for existing users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed the category to breaking and enhanced the description.

Base automatically changed from dbartol/actions-suites to main February 7, 2025 15:03
@dbartol dbartol merged commit 0b2e307 into main Feb 7, 2025
11 checks passed
@dbartol dbartol deleted the dbartol/actions-suite-selectors branch February 7, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Analysis of GitHub Actions documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants