This composite action is intended to be used on NVIDIA's self-hosted runners.
It signs into Artifactory via OIDC and outputs an authenticated URL that can be set as the GOPROXY environment variable before running a Golang build.
| Input | Type | Default | Description |
|---|---|---|---|
artifactory-domain |
string |
edge.urm.nvidia.com |
Artifactory domain |
artifactory-repository |
string |
edge-go-remote-virtual |
Artifactory repository |
oidc-audience |
string |
edge.urm.nvidia.com |
Value of the aud claim for the OIDC token |
oidc-provider-name |
string |
nvgithub |
Value of the Artifactory OIDC provider name |
| Input | Type | Description |
|---|---|---|
goproxy-url |
string |
URL for Go proxy with basic auth credentials embedded |
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: linux-amd64-cpu4
permissions:
contents: read
id-token: write # this permission is necessary for OIDC to work
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable # or specific version, like '1.25'
- name: Setup Go Proxy
id: setup-go-proxy
uses: nv-gha-runners/setup-artifactory-go-proxy@main
- env:
GOPROXY: ${{ steps.setup-go-proxy.outputs.goproxy-url }}
run: |
go build .