Skip to content

Commit 1dbd2a6

Browse files
ryancragunjeanneryanshore
authored
enos: cut a new release of enos for linux/s390x (#165)
- Add artifacts manifest (automatically generated) - VAULT-39475: update license headers to IBM Corp. This runs the `copywrite_ibm` tool with both years to update the copywrite headers in all files. - VAULT-40599: cut a release of enos for `linux/s390x` Add support for `build` workflow for `linux/s390x`. This will allow Z developers to execute enos scenarios locally. - VAULT-40512: fix `semverconstraint()` not respecting prereleases Update the `Masterminds/semver` module to fix a bug in `semverconstraint()` when using a version with pre-releases metadata. As it's been nearly a year since we've built a new release we also update our dependencies, Go version, and fix CI modules that no longer work with modern Terraform. Signed-off-by: Ryan Cragun <[email protected]> Co-authored-by: Jeanne Angeles Franco <[email protected]> Co-authored-by: brian shore <[email protected]>
1 parent fe78913 commit 1dbd2a6

File tree

261 files changed

+629
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+629
-560
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
name: build

.github/actions/profile-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
---
@@ -47,7 +47,7 @@ runs:
4747
fi
4848
cp ${{ inputs.profile-out }} default.pgo
4949
- if: ${{ inputs.upload-profile == 'true' }}
50-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
50+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5151
with:
5252
name: default.pgo
5353
path: default.pgo

.github/actions/set-up-buf/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
---

.github/actions/set-up-gofumpt/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
---

.github/actions/set-up-golangci-lint/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
---

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) HashiCorp, Inc.
1+
# Copyright IBM Corp. 2021, 2025
22
# SPDX-License-Identifier: MPL-2.0
33

44
changelog:

.github/workflows/build.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
filepath: ${{ steps.generate-metadata-file.outputs.filepath }}
1919
product-version: ${{ steps.product-metadata.outputs.product-version }}
2020
steps:
21-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
- id: product-metadata
2323
run: |
2424
make version
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
version: ${{ steps.product-metadata.outputs.product-version }}
3030
product: ${{ env.PKG_NAME }}
31-
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
31+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3232
with:
3333
name: metadata.json
3434
path: ${{ steps.generate-metadata-file.outputs.filepath }}
@@ -41,8 +41,8 @@ jobs:
4141
outputs:
4242
profile-path: ${{ steps.final-profile.outputs.profile-path }}
4343
steps:
44-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
45-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
44+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
4646
with:
4747
go-version-file: go.mod
4848
- id: product-metadata
@@ -81,6 +81,9 @@ jobs:
8181
matrix:
8282
goos: [linux, darwin]
8383
goarch: [amd64, arm64]
84+
include:
85+
- goos: linux
86+
goarch: s390x
8487
fail-fast: true
8588
name: Go ${{ matrix.goos }} ${{ matrix.goarch }} build
8689
env:
@@ -89,11 +92,11 @@ jobs:
8992
outputs:
9093
artifact-name: ${{ steps.build.outputs.artifact-name }}
9194
steps:
92-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
93-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
95+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
96+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
9497
with:
9598
go-version-file: go.mod
96-
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
99+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
97100
id: download
98101
with:
99102
name: ${{ needs.profile-binary.outputs.profile-path }}
@@ -106,13 +109,13 @@ jobs:
106109
pgo: true
107110
version: ${{ needs.product-metadata.outputs.product-version }}
108111
- name: Upload Artifacts
109-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
112+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
110113
with:
111114
name: ${{ steps.build.outputs.artifact-name }}
112115
path: ${{ steps.build.outputs.artifact-path }}
113116
retention-days: 1
114117
- if: ${{ matrix.goos == 'linux' }}
115-
uses: hashicorp/actions-packaging-linux@v1
118+
uses: hashicorp/actions-packaging-linux@129994a18b8e7dc106937edf859fddd97af66365 # v1.10
116119
with:
117120
name: ${{ github.event.repository.name }}
118121
description: "enos CLI package"
@@ -125,19 +128,19 @@ jobs:
125128
deb_depends: "openssl"
126129
rpm_depends: "openssl"
127130
- name: Set Package Names
128-
if: ${{ matrix.goos == 'linux' }}
131+
if: ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
129132
run: |
130133
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> "$GITHUB_ENV"
131134
echo "DEB_PACKAGE=$(basename out/*.deb)" >> "$GITHUB_ENV"
132135
- name: Upload RHEL Packages
133-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
134-
if: ${{ matrix.goos == 'linux' }}
136+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
137+
if: ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
135138
with:
136139
name: ${{ env.RPM_PACKAGE }}
137140
path: out/${{ env.RPM_PACKAGE }}
138141
- name: Upload Debian Packages
139-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
140-
if: ${{ matrix.goos == 'linux' }}
142+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
143+
if: ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
141144
with:
142145
name: ${{ env.DEB_PACKAGE }}
143146
path: out/${{ env.DEB_PACKAGE }}
@@ -150,15 +153,15 @@ jobs:
150153
runs-on: ubuntu-latest
151154
strategy:
152155
matrix:
153-
arch: ["arm64", "amd64"]
156+
arch: ["arm64", "amd64", "s390x"]
154157
env:
155158
repo: ${{github.event.repository.name}}
156159
version: ${{needs.product-metadata.outputs.product-version}}
157160
GOPRIVATE: 'github.com/hashicorp/*'
158161
TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
159162
steps:
160-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
161-
- uses: hashicorp/actions-docker-build@v2
163+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
164+
- uses: hashicorp/actions-docker-build@200254326a30d7b747745592f8f4d226bbe4abe4 # v2.2.0
162165
with:
163166
version: ${{env.version}}
164167
target: default

.github/workflows/create_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343

4444
steps:
4545
- name: Checkout
46-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
46+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4747

4848
# Set up bob CLI
4949
- name: Setup bob CLI
50-
uses: hashicorp/action-setup-bob@v1
50+
uses: hashicorp/action-setup-bob@01076d9cc869139ac97693d0869f0e80a666cb3b # v2.1.1
5151
with:
5252
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
5353

.github/workflows/pr_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
GOARCH: ${{ matrix.goarch }}
2828
CI: true
2929
steps:
30-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3232
with:
3333
go-version-file: go.mod
3434
- name: Get Product Version
@@ -43,7 +43,7 @@ jobs:
4343
goos: ${{ matrix.goos }}
4444
version: ${{ steps.get-product-version.outputs.product-version }}
4545
- name: Upload
46-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
46+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
4747
with:
4848
name: ${{ env.PKG_NAME }}_${{ steps.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
4949
path: out/${{ env.PKG_NAME }}_${{ steps.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip

.github/workflows/update_homebrew_formula.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ jobs:
6868
# Checkout Enos repo and place it in the specified relative path within the runner's main directory,
6969
# in order to accommodate checking out multiple repos.
7070
- name: Checkout enos repo
71-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
71+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7272
with:
7373
path: enos-checkout
74-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
74+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
7575
with:
7676
go-version-file: enos-checkout/go.mod
7777
# Set up bob CLI
7878
- name: Setup bob CLI
79-
uses: hashicorp/action-setup-bob@v1
79+
uses: hashicorp/action-setup-bob@01076d9cc869139ac97693d0869f0e80a666cb3b # v2.1.1
8080
with:
8181
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
8282
# Use bob to download SHA256SUMS file from Artifactory
@@ -100,7 +100,7 @@ jobs:
100100
# in order to accommodate checking out multiple repos.
101101
# A token with sufficient permissions for the target repo is required.
102102
- name: Checkout homebrew-tap
103-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
103+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
104104
with:
105105
repository: ${{ env.TARGET_REPO }}
106106
path: ${{ env.TARGET_REPO_FILEPATH }}

0 commit comments

Comments
 (0)