-
Notifications
You must be signed in to change notification settings - Fork 67.5k
Possible vulnerability due to bad action example. #24675
Copy link
Copy link
Closed
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcode securityContent related to code securityContent related to code securitycontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamdependabotContent related to DependabotContent related to Dependabothelp wantedAnyone is welcome to open a pull request to fix this issueAnyone is welcome to open a pull request to fix this issue
Metadata
Metadata
Assignees
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcode securityContent related to code securityContent related to code securitycontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamdependabotContent related to DependabotContent related to Dependabothelp wantedAnyone is welcome to open a pull request to fix this issueAnyone is welcome to open a pull request to fix this issue
Type
Fields
Give feedbackNo fields configured for issues without a type.


Code of Conduct
What article on docs.github.com is affected?
Almost every article with actions, for example:
https://docs.github.com/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
What part(s) of the article would you like to see updated?
Removal of
${{ }}in all conditions.Because of bug in action runners (actions/runner#1173), it can lead to vulnerability.


There is no error in the examples themselves (example run), but if you combine this condition with another one, the action will run even if the author isn't dependabot (example run); (example pull request with vulnerability)
Additional information
No response