From 32b998683680e40db07d2030bec89424a2a4bb3b Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 21 Oct 2025 15:36:55 +0100 Subject: [PATCH 01/13] add configure-goproxy action --- .github/actions/configure-goproxy/action.yml | 22 ++++++++++++++++++++ .github/workflows/ci.yml | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 .github/actions/configure-goproxy/action.yml diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml new file mode 100644 index 000000000..5cecd1206 --- /dev/null +++ b/.github/actions/configure-goproxy/action.yml @@ -0,0 +1,22 @@ +name: configure-goproxy +author: s.breen +description: Sets the current Go module proxy based on the presence of a private proxy URL in secrets +runs: + using: 'composite' + steps: + - name: Configure Go Proxy + id: configure-goproxy + shell: bash + run: | + if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]]; then + echo "No Artifactory secrets available - using direct GOPROXY" + GOPROXY_VALUE="direct" + elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && ("${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" =~ ^refs/heads/release-) ]]; then + echo "Production mode - using production Artifactory" + GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}" + else + echo "Development mode - using dev Artifactory" + GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_DEV_ENDPOINT }}" + fi + echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a270ad8d..4701e638a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: ./.github/actions/configure-goproxy - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -62,6 +63,7 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: ./.github/actions/configure-goproxy - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' From 382bd6c9927c9bb20b076bf77bcb9cf212f6d3b6 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 21 Oct 2025 15:56:15 +0100 Subject: [PATCH 02/13] update conditions --- .github/actions/configure-goproxy/action.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index 5cecd1206..58783d35d 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -8,15 +8,14 @@ runs: id: configure-goproxy shell: bash run: | - if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]]; then - echo "No Artifactory secrets available - using direct GOPROXY" - GOPROXY_VALUE="direct" - elif [[ "${{ inputs.is_production_release }}" == "true" ]] || [[ ("${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "schedule") && ("${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" =~ ^refs/heads/release-) ]]; then - echo "Production mode - using production Artifactory" - GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_ENDPOINT }}" + if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]] || + [[ ${{ github.event.pull_request.head.repo.fork }} ]] || + [[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then + echo "No Artifactory secrets available - using direct GOPROXY" + GOPROXY_VALUE="direct" else - echo "Development mode - using dev Artifactory" - GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_DEV_ENDPOINT }}" + echo "Development mode - using dev Artifactory" + GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_URL }}" fi echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV From a77def5593c2097ba87c08037eb65b274bbd276e Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Tue, 21 Oct 2025 15:59:05 +0100 Subject: [PATCH 03/13] fix path to local action --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4701e638a..280315bda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ./.github/actions/configure-goproxy + - uses: .github/actions/configure-goproxy - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -63,7 +63,7 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ./.github/actions/configure-goproxy + - uses: .github/actions/configure-goproxy - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' From 14d0e518813a026d44d2c7e402cbd57bc84787a2 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 14:26:20 +0100 Subject: [PATCH 04/13] add env vars --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 280315bda..53e12fb5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,10 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: .github/actions/configure-goproxy + - uses: ./.github/actions/configure-goproxy + env: + USER: ${{ secrets.ARTIFACTORY_USER }} + TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' From 5efa080d0553323c189a3a187ecce406acce33d2 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 14:31:55 +0100 Subject: [PATCH 05/13] use with instead of env --- .github/actions/configure-goproxy/action.yml | 9 +++++++++ .github/workflows/ci.yml | 11 +++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index 58783d35d..ff5dae716 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -1,6 +1,15 @@ name: configure-goproxy author: s.breen description: Sets the current Go module proxy based on the presence of a private proxy URL in secrets +inputs: + user: + description: Artifactory username secret name + required: false + default: "" + token: + description: Artifactory token secret name + required: false + default: "" runs: using: 'composite' steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53e12fb5b..95fc58d8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,10 +63,13 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ./.github/actions/configure-goproxy - env: - USER: ${{ secrets.ARTIFACTORY_USER }} - TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} + + - name: Configure GOPROXY + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' From ba5c40da4476355e3fa13aa643cd9f3cbb8771c3 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 14:44:11 +0100 Subject: [PATCH 06/13] fix path --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95fc58d8d..4aae6535e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,10 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: .github/actions/configure-goproxy + - uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' From 1569c087c649d2127f941c21e3101476586a10bc Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:01:03 +0100 Subject: [PATCH 07/13] use correct variable names --- .github/actions/configure-goproxy/action.yml | 4 ++-- .github/workflows/ci.yml | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index ff5dae716..bbe880c30 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -17,14 +17,14 @@ runs: id: configure-goproxy shell: bash run: | - if [[ "${{ secrets.ARTIFACTORY_USER }}" == "" ]] || + if [[ "${{ inputs.user }}" == "" ]] || [[ ${{ github.event.pull_request.head.repo.fork }} ]] || [[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then echo "No Artifactory secrets available - using direct GOPROXY" GOPROXY_VALUE="direct" else echo "Development mode - using dev Artifactory" - GOPROXY_VALUE="https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_URL }}" + GOPROXY_VALUE="https://${{ inputs.user }}:${{ inputs.token }}@${{ secrets.ARTIFACTORY_URL }}" fi echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aae6535e..ee2597156 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ permissions: env: NFPM_VERSION: 'v2.35.3' - GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev" + GOPROXY: "direct" jobs: proxy-sanity-check: @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-22.04 if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }} env: - GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev" + GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@${{ secrets.ARTIFACTORY_URL_DEV }}" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: @@ -50,6 +50,7 @@ jobs: with: user: ${{ secrets.ARTIFACTORY_USER }} token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -67,11 +68,11 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - name: Configure GOPROXY - uses: ./.github/actions/configure-goproxy + - uses: ./.github/actions/configure-goproxy with: user: ${{ secrets.ARTIFACTORY_USER }} token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: From a610d34eacd47c975cd238d6bddcf70f5e5114e0 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:02:21 +0100 Subject: [PATCH 08/13] add url input --- .github/actions/configure-goproxy/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index bbe880c30..43bdf807c 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -10,6 +10,10 @@ inputs: description: Artifactory token secret name required: false default: "" + url: + description: Artifactory URL + required: false + default: "" runs: using: 'composite' steps: @@ -24,7 +28,7 @@ runs: GOPROXY_VALUE="direct" else echo "Development mode - using dev Artifactory" - GOPROXY_VALUE="https://${{ inputs.user }}:${{ inputs.token }}@${{ secrets.ARTIFACTORY_URL }}" + GOPROXY_VALUE="https://${{ inputs.user }}:${{ inputs.token }}@${{ inputs.url }}" fi echo "GOPROXY=${GOPROXY_VALUE}" >> $GITHUB_ENV From 433602adc80479b817832e071d1bfc1ab290da73 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:13:53 +0100 Subject: [PATCH 09/13] try check for zero length --- .github/actions/configure-goproxy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index 43bdf807c..28648e259 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -21,7 +21,7 @@ runs: id: configure-goproxy shell: bash run: | - if [[ "${{ inputs.user }}" == "" ]] || + if [[ ! -z ${{ inputs.user }} ]] || [[ ${{ github.event.pull_request.head.repo.fork }} ]] || [[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then echo "No Artifactory secrets available - using direct GOPROXY" From 61eeea77ba5d880b59205f968f2934c66ac580d1 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:21:20 +0100 Subject: [PATCH 10/13] fix condition --- .github/actions/configure-goproxy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index 28648e259..2f6f3ef61 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -21,7 +21,7 @@ runs: id: configure-goproxy shell: bash run: | - if [[ ! -z ${{ inputs.user }} ]] || + if [[ -z ${{ inputs.user }} ]] || [[ ${{ github.event.pull_request.head.repo.fork }} ]] || [[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then echo "No Artifactory secrets available - using direct GOPROXY" From 60cbf70c4632fe84f2a3ae1311f2fccf784f8731 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:26:38 +0100 Subject: [PATCH 11/13] comparison with quotes --- .github/actions/configure-goproxy/action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index 2f6f3ef61..eeaed7f9c 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -21,9 +21,11 @@ runs: id: configure-goproxy shell: bash run: | - if [[ -z ${{ inputs.user }} ]] || - [[ ${{ github.event.pull_request.head.repo.fork }} ]] || - [[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then + if [[ -z "${{ inputs.user }}" ]] || \ + [[ -z "${{ inputs.token }}" ]] || \ + [[ -z "${{ inputs.url }}" ]] || \ + [[ "${{ github.event.pull_request.head.repo.fork" }} == 'true' ]] || + [[ ${{ startsWith(github.head_ref, 'dependabot-')}} == 'true' ]] ; then echo "No Artifactory secrets available - using direct GOPROXY" GOPROXY_VALUE="direct" else From e6dcb395d1828e9cd8613ff3d6f4475b5d43ae12 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:28:49 +0100 Subject: [PATCH 12/13] missing quotes --- .github/actions/configure-goproxy/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/configure-goproxy/action.yml b/.github/actions/configure-goproxy/action.yml index eeaed7f9c..c9c825fc9 100644 --- a/.github/actions/configure-goproxy/action.yml +++ b/.github/actions/configure-goproxy/action.yml @@ -24,8 +24,8 @@ runs: if [[ -z "${{ inputs.user }}" ]] || \ [[ -z "${{ inputs.token }}" ]] || \ [[ -z "${{ inputs.url }}" ]] || \ - [[ "${{ github.event.pull_request.head.repo.fork" }} == 'true' ]] || - [[ ${{ startsWith(github.head_ref, 'dependabot-')}} == 'true' ]] ; then + [[ "${{ github.event.pull_request.head.repo.fork }}" == 'true' ]] || + [[ "${{ startsWith(github.head_ref, 'dependabot-')}}" == 'true' ]] ; then echo "No Artifactory secrets available - using direct GOPROXY" GOPROXY_VALUE="direct" else From 1c78f8e8a9aff55eb46eca5507646e0ad2b31cc6 Mon Sep 17 00:00:00 2001 From: Sean Breen Date: Wed, 22 Oct 2025 15:36:33 +0100 Subject: [PATCH 13/13] add goproxy to every ci job --- .github/workflows/ci.yml | 66 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee2597156..864e24d53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: ./.github/actions/configure-goproxy + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy with: user: ${{ secrets.ARTIFACTORY_USER }} token: ${{ secrets.ARTIFACTORY_TOKEN }} @@ -67,13 +68,12 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - - uses: ./.github/actions/configure-goproxy + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy with: user: ${{ secrets.ARTIFACTORY_USER }} token: ${{ secrets.ARTIFACTORY_TOKEN }} url: ${{ secrets.ARTIFACTORY_URL_DEV }} - - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -91,6 +91,12 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -105,6 +111,12 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-tags: 'true' + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -136,6 +148,12 @@ jobs: version: "3.22" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -180,6 +198,12 @@ jobs: version: "3.22" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -231,6 +255,12 @@ jobs: release: "alpine" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -292,6 +322,12 @@ jobs: path: "/nginx-plus/agent" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -351,7 +387,13 @@ jobs: version: "mainline" release: "alpine" steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -412,7 +454,13 @@ jobs: release: "debian" path: "/nginx-plus/agent" steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod' @@ -458,6 +506,12 @@ jobs: contents: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Configure Go Proxy + uses: ./.github/actions/configure-goproxy + with: + user: ${{ secrets.ARTIFACTORY_USER }} + token: ${{ secrets.ARTIFACTORY_TOKEN }} + url: ${{ secrets.ARTIFACTORY_URL_DEV }} - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: 'go.mod'