diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 4010c86..e010788 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -28,15 +28,41 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 + - name: Copy .gts files as .ts for CodeQL + if: matrix.language == 'javascript-typescript' + run: | + find . -name "*.gts" -not -path "*/node_modules/*" | while read f; do + cp "$f" "${f%.gts}.ts" + perl -i -0777 -pe 's/