@ -26,10 +26,10 @@ jobs:
base-product-version : $${{ steps.set-product-version.outputs.base-product-version }}
prerelease-product-version : ${{ steps.set-product-version.outputs.prerelease-product-version }}
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Set Product version
id : set-product-version
uses : hashicorp/actions-set-product-version@v2 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-set-product-version@v2
product-metadata:
needs : set-product-version
@ -39,7 +39,7 @@ jobs:
product-edition : ${{ steps.get-product-edition.outputs.product-edition }}
go-version : ${{ steps.get-go-version.outputs.go-version }}
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Determine Go version
id : get-go-version
# We use .go-version as our source of truth for current Go
@ -48,7 +48,7 @@ jobs:
echo "Building with Go $(cat .go-version)"
echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- name : Set up Go
uses : actions/setup-go@ d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5 .0
uses : actions/setup-go@ 4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
with:
go-version : "${{ steps.get-go-version.outputs.go-version }}"
cache : false
@ -58,7 +58,7 @@ jobs:
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name : Set up Go modules cache
uses : actions/cache@ 1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses : actions/cache@ 668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.3
with:
path : |
${{ steps.go-cache-paths.outputs.go-build }}
@ -86,7 +86,7 @@ jobs:
runs-on : ${{ fromJSON(vars.BUILDER_LINUX) }}
steps:
- name : 'Checkout directory'
uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- run : |
echo "Product Version - ${{ needs.set-product-version.outputs.product-version }}"
echo "Product Prerelease - ${{ needs.set-product-version.outputs.prerelease-product-version }}"
@ -100,15 +100,15 @@ jobs:
filepath : ${{ steps.generate-metadata-file.outputs.filepath }}
steps:
- name : 'Checkout directory'
uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Generate metadata file
id : generate-metadata-file
uses : hashicorp/actions-generate-metadata@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-generate-metadata@v1
with:
repository : boundary
version : ${{ needs.set-product-version.outputs.product-version }}
product : ${{ env.PKG_NAME }}
- uses : actions/upload-artifact@b 4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses : actions/upload-artifact@b bbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name : metadata.json
path : ${{ steps.generate-metadata-file.outputs.filepath }}
@ -137,9 +137,9 @@ jobs:
GOPRIVATE : "github.com/hashicorp"
GO111MODULE : on
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Set up go
uses : actions/setup-go@ d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5 .0
uses : actions/setup-go@ 4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
with:
go-version : ${{ matrix.go }}
cache : false
@ -149,7 +149,7 @@ jobs:
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name : Set up Go modules cache
uses : actions/cache@ 1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses : actions/cache@ 668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.3
with:
path : |
${{ steps.go-cache-paths.outputs.go-build }}
@ -163,7 +163,7 @@ jobs:
id : set-sha
run : echo "sha=$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)" >> "$GITHUB_OUTPUT"
- name : Download UI artifact
uses : dawidd6/action-download-artifact@ ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
uses : dawidd6/action-download-artifact@ 8a338493df3d275e4a7a63bcff3b8fe97e51a927 # v19
with:
workflow : build-admin-ui.yaml
commit : ${{ steps.set-sha.outputs.sha }}
@ -175,7 +175,7 @@ jobs:
CGO_ENABLED : "0"
PRERELEASE_PRODUCT_VERSION : ${{ needs.set-product-version.outputs.prerelease-product-version }}
METADATA_PRODUCT_VERSION : ${{ needs.product-metadata.outputs.product-edition }}
uses : hashicorp/actions-go-build@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-go-build@v1
with:
product_name : ${{ env.PKG_NAME }}
product_version : ${{ needs.set-product-version. outputs.product-version }}
@ -205,11 +205,11 @@ jobs:
GO111MODULE : on
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Set up Git
run : git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
- name : Set up Go
uses : actions/setup-go@ d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5 .0
uses : actions/setup-go@ 4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
with:
go-version : ${{ matrix.go }}
cache : false
@ -219,7 +219,7 @@ jobs:
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name : Set up Go modules cache
uses : actions/cache@ 1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses : actions/cache@ 668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.3
with:
path : |
${{ steps.go-cache-paths.outputs.go-build }}
@ -231,7 +231,7 @@ jobs:
id : set-sha
run : echo "sha=$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)" >> "$GITHUB_OUTPUT"
- name : Download UI artifact
uses : dawidd6/action-download-artifact@ ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
uses : dawidd6/action-download-artifact@ 8a338493df3d275e4a7a63bcff3b8fe97e51a927 # v19
with:
workflow : build-admin-ui.yaml
commit : ${{ steps.set-sha.outputs.sha }}
@ -243,7 +243,7 @@ jobs:
CGO_ENABLED : "0"
PRERELEASE_PRODUCT_VERSION : ${{ needs.set-product-version.outputs.prerelease-product-version }}
METADATA_PRODUCT_VERSION : ${{ needs.product-metadata.outputs.product-edition }}
uses : hashicorp/actions-go-build@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-go-build@v1
with:
product_name : ${{ env.PKG_NAME }}
product_version : ${{ needs.set-product-version. outputs.product-version }}
@ -259,7 +259,7 @@ jobs:
run : |
mkdir -p "$LICENSE_DIR" && cp LICENSE "$LICENSE_DIR/LICENSE.txt"
- name : Package
uses : hashicorp/actions-packaging-linux@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-packaging-linux@v1
with:
name : ${{ github.event.repository.name }}
description : "HashiCorp Boundary - Identity-based access management for dynamic infrastructure"
@ -279,12 +279,12 @@ jobs:
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> "$GITHUB_ENV"
echo "DEB_PACKAGE=$(basename out/*.deb)" >> "$GITHUB_ENV"
- name : Upload RPM package
uses : actions/upload-artifact@b 4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses : actions/upload-artifact@b bbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name : ${{ env.RPM_PACKAGE }}
path : out/${{ env.RPM_PACKAGE }}
- name : Upload DEB package
uses : actions/upload-artifact@b 4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses : actions/upload-artifact@b bbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name : ${{ env.DEB_PACKAGE }}
path : out/${{ env.DEB_PACKAGE }}
@ -307,9 +307,9 @@ jobs:
GO111MODULE : on
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Set up go
uses : actions/setup-go@ d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5 .0
uses : actions/setup-go@ 4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3 .0
with:
go-version : ${{ matrix.go }}
cache : false
@ -319,7 +319,7 @@ jobs:
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name : Set up Go modules cache
uses : actions/cache@ 1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses : actions/cache@ 668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.3
with:
path : |
${{ steps.go-cache-paths.outputs.go-build }}
@ -331,7 +331,7 @@ jobs:
id : set-sha
run : echo "sha=$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)" >> "$GITHUB_OUTPUT"
- name : Download UI artifact
uses : dawidd6/action-download-artifact@ ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
uses : dawidd6/action-download-artifact@ 8a338493df3d275e4a7a63bcff3b8fe97e51a927 # v19
with:
workflow : build-admin-ui.yaml
commit : ${{ steps.set-sha.outputs.sha }}
@ -343,7 +343,7 @@ jobs:
CGO_ENABLED : "0"
PRERELEASE_PRODUCT_VERSION : ${{ needs.set-product-version.outputs.prerelease-product-version }}
METADATA_PRODUCT_VERSION : ${{ needs.product-metadata.outputs.product-edition }}
uses : hashicorp/actions-go-build@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-go-build@v1
with:
product_name : ${{ env.PKG_NAME }}
product_version : ${{ needs.set-product-version. outputs.product-version }}
@ -371,9 +371,9 @@ jobs:
outputs:
name : docker.io/hashicorp/${{ env.repo }}:${{ env.version }}_${{ github.sha }}
steps:
- uses : actions/checkout@ 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2 .2
- uses : actions/checkout@ de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
- name : Docker Build (Action)
uses : hashicorp/actions-docker-build@v2 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
uses : hashicorp/actions-docker-build@v2
with:
version : ${{ env.version }}
target : default