mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-07 23:49:35 +00:00
ci: improve workflow determinism and security scanning
- Add --language=shellspec flag to tree-sitter parse for deterministic grammar selection - Add C++ language to CodeQL analysis to scan src/scanner.c for security issues Addresses PR #1 review comments from CodeRabbit.
This commit is contained in:
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: ['actions,javascript'] # Add languages used in your actions
|
language: ['actions,javascript', 'cpp'] # Add languages used in your actions
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -140,7 +140,7 @@ jobs:
|
|||||||
End
|
End
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
npx tree-sitter parse test_sample.shellspec --quiet || {
|
npx tree-sitter parse --language=shellspec test_sample.shellspec --quiet || {
|
||||||
echo "❌ Parser failed on sample ShellSpec code"
|
echo "❌ Parser failed on sample ShellSpec code"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user