Skip to content

Commit 00c0dc4

Browse files
Vlad Rusuvladioanr
authored andcommitted
feat: exclude dependabot from dev and prod steps
Since dependabot does not have access to the secrets in the github app token generation step, this step fails in the PRs with sha updates, so we are excluding dependabot from running gatekeeper jobs.
1 parent 8f06190 commit 00c0dc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/reusable-gatekeeper.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
echo "matrix=${CLUSTER_JSON}" >> $GITHUB_OUTPUT
131131
132132
gatekeeper-enforce-dev:
133+
if: github.actor != 'dependabot[bot]'
133134
needs:
134135
- validate-caller-repos
135136
- enumerate-dev-clusters
@@ -184,6 +185,7 @@ jobs:
184185
"${{ inputs.gator-version }}"
185186
186187
gatekeeper-enforce-prod:
188+
if: github.actor != 'dependabot[bot]'
187189
needs:
188190
- validate-caller-repos
189191
- enumerate-prod-clusters

0 commit comments

Comments
 (0)