From 8a1bde45c16dbcbe42018bb05070c69914d84d9a Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 26 Aug 2025 15:17:15 +0100 Subject: [PATCH 1/3] disable some workflows on forks and dependabot PRs --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d308f13d..6cc1d6533 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: proxy-sanity-check: name: Proxy Sanity Check runs-on: ubuntu-22.04 - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} env: GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev" steps: @@ -92,6 +92,7 @@ jobs: build-unsigned-snapshot: name: Build Unsigned Snapshot runs-on: ubuntu-22.04 + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -239,6 +240,7 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 From b3114d30f2f368ed2fd1dde1cadde326217e1401 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 26 Aug 2025 15:31:00 +0100 Subject: [PATCH 2/3] fix branch prefix --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cc1d6533..aa211830f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: proxy-sanity-check: name: Proxy Sanity Check runs-on: ubuntu-22.04 - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} env: GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev" steps: @@ -92,7 +92,7 @@ jobs: build-unsigned-snapshot: name: Build Unsigned Snapshot runs-on: ubuntu-22.04 - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -146,7 +146,7 @@ jobs: official-oss-image-integration-tests: name: Integration Tests - Official OSS Images needs: build-unsigned-snapshot - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} runs-on: ubuntu-22.04 strategy: matrix: @@ -185,7 +185,7 @@ jobs: official-plus-image-integration-tests: name: Integration Tests - Official Plus Images needs: build-unsigned-snapshot - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} runs-on: ubuntu-22.04 strategy: matrix: @@ -240,7 +240,7 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 @@ -267,7 +267,7 @@ jobs: run: git push 'https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/nginx/agent.git' benchmark-results:benchmark-results load-tests: name: Load Tests - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }} + if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} permissions: contents: write runs-on: ubuntu-22.04 From e473f6aaf60c25ad1499bb1c6848d216686cb0ba Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 26 Aug 2025 15:35:17 +0100 Subject: [PATCH 3/3] remove two checks --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa211830f..f94a3771c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,6 @@ jobs: build-unsigned-snapshot: name: Build Unsigned Snapshot runs-on: ubuntu-22.04 - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -240,7 +239,6 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write - if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot-') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0