Skip to content

Commit 6ac1e7b

Browse files
committed
Revert
1 parent 5914c8b commit 6ac1e7b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
name: "CodeQL"
1313

1414
on:
15-
pull_request:
1615
push:
1716
paths:
1817
- "**.cs"
@@ -35,7 +34,6 @@ jobs:
3534
permissions:
3635
# required for all workflows
3736
security-events: write
38-
pull-requests: write
3937

4038
# only required for workflows in private repositories
4139
actions: read
@@ -89,21 +87,3 @@ jobs:
8987
uses: github/codeql-action/analyze@v3
9088
with:
9189
category: "/language:${{matrix.language}}"
92-
93-
- name: Check CodeQL Results
94-
if: ${{ github.event_name == 'pull_request' }}
95-
id: check_codeql
96-
run: |
97-
if [ -f /home/runner/work/AzzyBot/results/csharp.sarif ]; then
98-
RESULTS=$(jq '.runs[].results | length' /home/runner/work/AzzyBot/results/csharp.sarif)
99-
echo "results=$RESULTS" >> "$GITHUB_OUTPUT"
100-
else
101-
echo "results=0" >> "$GITHUB_OUTPUT"
102-
fi
103-
104-
- name: Try approving PR
105-
if: ${{ steps.check_codeql.outputs.results == '0' && github.event_name == 'pull_request' }}
106-
run: |
107-
gh pr review ${{ github.event.pull_request.number }} --approve
108-
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)