Skip to content
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

report closer line numbers #15

Merged
merged 1 commit into from
Apr 12, 2024
Merged

report closer line numbers #15

merged 1 commit into from
Apr 12, 2024

Conversation

becojo
Copy link
Contributor

@becojo becojo commented Apr 12, 2024

Add a lines map to the GitHub Actions job and steps model to store the line number of relevant properties.

This will help rules highlight the line of the affected step/job property. For instance, known_vulnerability will highlight the step's uses instead of the first line of the step. The injection rule will flag either run or with.script depending on the type of injection.

@becojo becojo requested a review from a team as a code owner April 12, 2024 19:27
@becojo becojo merged commit 61c49b2 into main Apr 12, 2024
5 checks passed
@becojo becojo deleted the yaml-lines branch April 12, 2024 19:40
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.

2 participants