Merge pull request #78 from github/rasmuswl/syntax-error-query

This commit is contained in:
Alvaro Muñoz
2024-09-06 15:48:35 +02:00
committed by GitHub
5 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/**
* @name Syntax error
* @description A piece of code could not be parsed due to syntax errors.
* @kind problem
* @problem.severity recommendation
* @id actions/syntax-error
* @tags reliability
* correctness
* language-features
* debug
* @precision very-high
*/
private import codeql.actions.ast.internal.Yaml
from YamlParseError pe
select pe, pe.getMessage()

View File

@@ -0,0 +1,7 @@
on: pull_request_target
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event.pull_request.body}}

View File

@@ -0,0 +1 @@
| .github/workflows/malformed.yml:7:4:7:4 | expected <block end>, but found '<block sequence start>' | expected <block end>, but found '<block sequence start>' |

View File

@@ -0,0 +1 @@
Debug/SyntaxError.ql

View File

@@ -0,0 +1 @@
semmle-extractor-options: --tolerate-parse-errors --experimental