Skip to content

Commit 0312338

Browse files
committed
chore: create a CodeQL workflow to match the required status check
Signed-off-by: shankar <shankar@layerzerolabs.org>
1 parent c360e76 commit 0312338

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/codeql.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,27 @@ jobs:
128128
severity: warning
129129
continue-on-error: true
130130

131+
# Final status check job for backwards compatibility with the old CodeQL workflow
132+
CodeQL:
133+
name: CodeQL
134+
runs-on: ubuntu-latest
135+
needs: [analyze, dockerfile, shellcheck]
136+
if: always()
137+
138+
steps:
139+
- name: Check all jobs succeeded
140+
run: |
141+
if [ "${{ needs.analyze.result }}" != "success" ]; then
142+
echo "CodeQL analysis failed"
143+
exit 1
144+
fi
145+
if [ "${{ needs.dockerfile.result }}" != "success" ]; then
146+
echo "Dockerfile lint failed"
147+
exit 1
148+
fi
149+
if [ "${{ needs.shellcheck.result }}" != "success" ]; then
150+
echo "ShellCheck lint failed"
151+
exit 1
152+
fi
153+
echo "All security checks passed!"
154+

0 commit comments

Comments
 (0)