Download tasks/tasksmith-4fc63afb85cd/tests/source/.github/codeql/custom-queries.qls from FineEnvs/HF_ML_Tasksmith: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-4fc63afb85cd/tests/source/.github/codeql/custom-queries.qls
- Command line
-
hf download hf://datasets/FineEnvs/HF_ML_Tasksmith/tasks/tasksmith-4fc63afb85cd/tests/source/.github/codeql/custom-queries.qls
-
curl -L -o custom-queries.qls https://huggingface.co/datasets/FineEnvs/HF_ML_Tasksmith/resolve/main/tasks/tasksmith-4fc63afb85cd/tests/source/.github/codeql/custom-queries.qls
1.02 kB
| import codeql | |
| from WorkflowString interpolation, Workflow workflow | |
| where | |
| interpolation.getStringValue().matches("${{ github.event.issue.title }}") or | |
| interpolation.getStringValue().matches("${{ github.event.issue.body }}") or | |
| interpolation.getStringValue().matches("${{ github.event.pull_request.title }}") or | |
| interpolation.getStringValue().matches("${{ github.event.pull_request.body }}") or | |
| interpolation.getStringValue().matches("${{ github.event.review.body }}") or | |
| interpolation.getStringValue().matches("${{ github.event.comment.body }}") or | |
| interpolation.getStringValue().matches("${{ github.event.inputs.* }}") or | |
| interpolation.getStringValue().matches("${{ github.event.head_commit.message }}") | |
| interpolation.getStringValue().matches("${{ github.event.* }}") and | |
| ( | |
| step.getKey() = "run" or // Injection in run | |
| step.getKey() = "env" or // Injection via env | |
| step.getKey() = "with" // Injection via with | |
| ) | |
| select workflow, "🚨 Do not use directly as input of action" | |