Skip to content

Commit 5efa080

Browse files
committed
use with instead of env
1 parent 14d0e51 commit 5efa080

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/actions/configure-goproxy/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: configure-goproxy
22
author: s.breen
33
description: Sets the current Go module proxy based on the presence of a private proxy URL in secrets
4+
inputs:
5+
user:
6+
description: Artifactory username secret name
7+
required: false
8+
default: ""
9+
token:
10+
description: Artifactory token secret name
11+
required: false
12+
default: ""
413
runs:
514
using: 'composite'
615
steps:

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ jobs:
6363
contents: write
6464
steps:
6565
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
66-
- uses: ./.github/actions/configure-goproxy
67-
env:
68-
USER: ${{ secrets.ARTIFACTORY_USER }}
69-
TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
66+
67+
- name: Configure GOPROXY
68+
uses: ./.github/actions/configure-goproxy
69+
with:
70+
user: ${{ secrets.ARTIFACTORY_USER }}
71+
token: ${{ secrets.ARTIFACTORY_TOKEN }}
72+
7073
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
7174
with:
7275
go-version-file: 'go.mod'

0 commit comments

Comments
 (0)