Skip to content

Commit 7597193

Browse files
Potential fix for code scanning alert no. 542: If expression always true
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent c132f47 commit 7597193

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,7 @@ jobs:
412412
openshift-certification:
413413
name: OpenShift Certification
414414
needs: [build-oss, build-plus, build-operator]
415-
if: >
416-
${{ github.event_name == 'pull_request'
417-
&& github.event.pull_request.base.ref == 'main'
418-
|| (github.event_name == 'push' && github.ref == 'refs/heads/main')
419-
|| (inputs.is_production_release == true)
420-
}}
415+
if: ${{ github.event_name == 'pull_request' && github.event_pull_request.base.ref == 'main' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || (inputs.is_production_release == true) }}
421416
uses: ./.github/workflows/openshift-certification.yml
422417
with:
423418
runner: ubuntu-24.04

0 commit comments

Comments
 (0)