Skip to content

Commit a867ee5

Browse files
CI: Fix dependabot PR blocking job (#6787)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 2cce41b commit a867ee5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: Exit if dependabot triggered the workflow
81-
if: github.event.pull_request.user.login == 'dependabot[bot]'
81+
if: github.triggering_actor == 'dependabot[bot]'
8282
run: |
8383
echo "::warning::Dependabot is not allowed to trigger this workflow. Please review carefully the changes before running the workflow manually."
8484
exit 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix dependabot PR blocking job

zizmor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rules:
2+
bot-conditions:
3+
ignore:
4+
# ignore line 81 in ci_cd.yml
5+
- ci_cd.yml:81

0 commit comments

Comments
 (0)