mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
update all github actions with no breaking changes (#2478)
Signed-off-by: ollevche <ollevche@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ad68328582
commit
b8c24e935d
2
.github/workflows/backport.yml
vendored
2
.github/workflows/backport.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Check if backport label exists in any of the labels on the pull request
|
- name: Check if backport label exists in any of the labels on the pull request
|
||||||
id: check_backport_label
|
id: check_backport_label
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
pkg-name: ${{ steps.get-pkg-name.outputs.pkg-name }}
|
pkg-name: ${{ steps.get-pkg-name.outputs.pkg-name }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Get Package Name
|
- name: Get Package Name
|
||||||
id: get-pkg-name
|
id: get-pkg-name
|
||||||
run: |
|
run: |
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
echo "pkg-name=${pkg_name}" | tee -a "${GITHUB_OUTPUT}"
|
echo "pkg-name=${pkg_name}" | tee -a "${GITHUB_OUTPUT}"
|
||||||
- name: Decide version number
|
- name: Decide version number
|
||||||
id: get-product-version
|
id: get-product-version
|
||||||
uses: hashicorp/actions-set-product-version@v1
|
uses: hashicorp/actions-set-product-version@b426ea77cad0389738a8a81d89e933146a3ba97f # unreleased, untagged (upgrade of actions/checkout)
|
||||||
- name: Determine experiments
|
- name: Determine experiments
|
||||||
id: get-ldflags
|
id: get-ldflags
|
||||||
env:
|
env:
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
go-version: ${{ steps.get-go-version.outputs.version }}
|
go-version: ${{ steps.get-go-version.outputs.version }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Determine Go version
|
- name: Determine Go version
|
||||||
id: get-go-version
|
id: get-go-version
|
||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
@@ -75,10 +75,10 @@ jobs:
|
|||||||
filepath: ${{ steps.generate-metadata-file.outputs.filepath }}
|
filepath: ${{ steps.generate-metadata-file.outputs.filepath }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Generate package metadata
|
- name: Generate package metadata
|
||||||
id: generate-metadata-file
|
id: generate-metadata-file
|
||||||
uses: hashicorp/actions-generate-metadata@v1
|
uses: hashicorp/actions-generate-metadata@f6f1ca9cededa05d841a58d171064faf3de8ec74 # unreleased, untagged (upgrade of multiple gha)
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.get-product-version.outputs.product-version }}
|
version: ${{ needs.get-product-version.outputs.product-version }}
|
||||||
product: ${{ env.PKG_NAME }}
|
product: ${{ env.PKG_NAME }}
|
||||||
@@ -137,9 +137,9 @@ jobs:
|
|||||||
repo: "opentofu"
|
repo: "opentofu"
|
||||||
version: ${{needs.get-product-version.outputs.product-version}}
|
version: ${{needs.get-product-version.outputs.product-version}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Build Docker images
|
- name: Build Docker images
|
||||||
uses: hashicorp/actions-docker-build@v1
|
uses: hashicorp/actions-docker-build@0635aed766f1f4e4519845ca22a4d024c96fb55d # unreleased, untagged (upgrade of multiple gha)
|
||||||
with:
|
with:
|
||||||
pkg_name: "opentofu_${{env.version}}"
|
pkg_name: "opentofu_${{env.version}}"
|
||||||
version: ${{env.version}}
|
version: ${{env.version}}
|
||||||
@@ -185,10 +185,10 @@ jobs:
|
|||||||
cache_path=internal/command/e2etest/build
|
cache_path=internal/command/e2etest/build
|
||||||
echo "e2e-cache-key=${cache_key}" | tee -a "${GITHUB_OUTPUT}"
|
echo "e2e-cache-key=${cache_key}" | tee -a "${GITHUB_OUTPUT}"
|
||||||
echo "e2e-cache-path=${cache_path}" | tee -a "${GITHUB_OUTPUT}"
|
echo "e2e-cache-path=${cache_path}" | tee -a "${GITHUB_OUTPUT}"
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ jobs:
|
|||||||
bash ./internal/command/e2etest/make-archive.sh
|
bash ./internal/command/e2etest/make-archive.sh
|
||||||
|
|
||||||
- name: Save test harness to cache
|
- name: Save test harness to cache
|
||||||
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.set-cache-values.outputs.e2e-cache-path }}
|
path: ${{ steps.set-cache-values.outputs.e2e-cache-path }}
|
||||||
key: ${{ steps.set-cache-values.outputs.e2e-cache-key }}_${{ matrix.goos }}_${{ matrix.goarch }}
|
key: ${{ steps.set-cache-values.outputs.e2e-cache-key }}_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||||
@@ -243,9 +243,9 @@ jobs:
|
|||||||
# fresh build from source.)
|
# fresh build from source.)
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
if: ${{ (matrix.goos == 'linux') || (matrix.goos == 'darwin') }}
|
if: ${{ (matrix.goos == 'linux') || (matrix.goos == 'darwin') }}
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: "Restore cache"
|
- name: "Restore cache"
|
||||||
uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
id: e2etestpkg
|
id: e2etestpkg
|
||||||
with:
|
with:
|
||||||
path: ${{ needs.e2etest-build.outputs.e2e-cache-path }}
|
path: ${{ needs.e2etest-build.outputs.e2e-cache-path }}
|
||||||
@@ -264,7 +264,7 @@ jobs:
|
|||||||
unzip "${{ needs.e2etest-build.outputs.e2e-cache-path }}/tofu-e2etest_${{ env.os }}_${{ env.arch }}.zip"
|
unzip "${{ needs.e2etest-build.outputs.e2e-cache-path }}/tofu-e2etest_${{ env.os }}_${{ env.arch }}.zip"
|
||||||
unzip "./tofu_${{env.version}}_${{ env.os }}_${{ env.arch }}.zip"
|
unzip "./tofu_${{env.version}}_${{ env.os }}_${{ env.arch }}.zip"
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
|
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
|
||||||
if: ${{ contains(matrix.goarch, 'arm') }}
|
if: ${{ contains(matrix.goarch, 'arm') }}
|
||||||
with:
|
with:
|
||||||
platforms: all
|
platforms: all
|
||||||
@@ -298,7 +298,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
||||||
- name: Download OpenTofu CLI package
|
- name: Download OpenTofu CLI package
|
||||||
@@ -308,7 +308,7 @@ jobs:
|
|||||||
name: tofu_${{ env.version }}_linux_amd64.zip
|
name: tofu_${{ env.version }}_linux_amd64.zip
|
||||||
path: .
|
path: .
|
||||||
- name: Checkout tofu-exec repo
|
- name: Checkout tofu-exec repo
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
repository: opentofu/tofu-exec
|
repository: opentofu/tofu-exec
|
||||||
path: tofu-exec
|
path: tofu-exec
|
||||||
|
|||||||
40
.github/workflows/checks.yml
vendored
40
.github/workflows/checks.yml
vendored
@@ -56,17 +56,17 @@ jobs:
|
|||||||
# for testing on non amd64 envs like 386, arm64 etc...
|
# for testing on non amd64 envs like 386, arm64 etc...
|
||||||
- name: "Set up QEMU"
|
- name: "Set up QEMU"
|
||||||
if: matrix.goos == 'linux' && matrix.goarch != 'amd64' && matrix.goarch != 'arm64'
|
if: matrix.goos == 'linux' && matrix.goarch != 'amd64' && matrix.goarch != 'arm64'
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
|
||||||
|
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Determine Go version
|
- name: Determine Go version
|
||||||
id: go
|
id: go
|
||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
# identical across the unit-tests, e2e-tests, and consistency-checks
|
# identical across the unit-tests, e2e-tests, and consistency-checks
|
||||||
# jobs, or else weird things could happen.
|
# jobs, or else weird things could happen.
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: "~/go/pkg"
|
path: "~/go/pkg"
|
||||||
key: go-mod-${{ hashFiles('go.sum') }}
|
key: go-mod-${{ hashFiles('go.sum') }}
|
||||||
@@ -91,14 +91,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Determine Go version
|
- name: Determine Go version
|
||||||
id: go
|
id: go
|
||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
# identical across the unit-tests, e2e-tests, and consistency-checks
|
# identical across the unit-tests, e2e-tests, and consistency-checks
|
||||||
# jobs, or else weird things could happen.
|
# jobs, or else weird things could happen.
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: "~/go/pkg"
|
path: "~/go/pkg"
|
||||||
key: go-mod-${{ hashFiles('go.sum') }}
|
key: go-mod-${{ hashFiles('go.sum') }}
|
||||||
@@ -129,14 +129,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Determine Go version
|
- name: Determine Go version
|
||||||
id: go
|
id: go
|
||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
# identical across the unit-tests, e2e-tests, and consistency-checks
|
# identical across the unit-tests, e2e-tests, and consistency-checks
|
||||||
# jobs, or else weird things could happen.
|
# jobs, or else weird things could happen.
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: "~/go/pkg"
|
path: "~/go/pkg"
|
||||||
key: go-mod-${{ hashFiles('go.sum') }}
|
key: go-mod-${{ hashFiles('go.sum') }}
|
||||||
@@ -161,7 +161,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # We need to do comparisons against the main branch.
|
fetch-depth: 0 # We need to do comparisons against the main branch.
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ jobs:
|
|||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ jobs:
|
|||||||
# identical across the unit-tests, e2e-tests, and consistency-checks
|
# identical across the unit-tests, e2e-tests, and consistency-checks
|
||||||
# jobs, or else weird things could happen.
|
# jobs, or else weird things could happen.
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: "~/go/pkg"
|
path: "~/go/pkg"
|
||||||
key: go-mod-${{ hashFiles('go.sum') }}
|
key: go-mod-${{ hashFiles('go.sum') }}
|
||||||
@@ -194,7 +194,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cache protobuf tools
|
- name: Cache protobuf tools
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: "tools/protobuf-compile/.workdir"
|
path: "tools/protobuf-compile/.workdir"
|
||||||
key: protobuf-tools-${{ hashFiles('tools/protobuf-compile/protobuf-compile.go') }}
|
key: protobuf-tools-${{ hashFiles('tools/protobuf-compile/protobuf-compile.go') }}
|
||||||
@@ -210,7 +210,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: "Code linting"
|
- name: "Code linting"
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
|
||||||
with:
|
with:
|
||||||
version: v1.62
|
version: v1.62
|
||||||
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
||||||
@@ -230,14 +230,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Install licensei
|
- name: Install licensei
|
||||||
run: |
|
run: |
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
- name: Restore cache license information of dependencies
|
- name: Restore cache license information of dependencies
|
||||||
uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
with:
|
with:
|
||||||
path: ".licensei.cache"
|
path: ".licensei.cache"
|
||||||
key: licensei-cache-${{ hashFiles('go.sum') }}
|
key: licensei-cache-${{ hashFiles('go.sum') }}
|
||||||
@@ -249,7 +249,7 @@ jobs:
|
|||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Install Go toolchain
|
- name: Install Go toolchain
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@ jobs:
|
|||||||
if: env.LICENSE_CHECK != 'false'
|
if: env.LICENSE_CHECK != 'false'
|
||||||
|
|
||||||
- name: Save cache license information of dependencies
|
- name: Save cache license information of dependencies
|
||||||
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
path: ".licensei.cache"
|
path: ".licensei.cache"
|
||||||
@@ -273,7 +273,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Fetch source code"
|
- name: "Fetch source code"
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: "Run Installation Instructions Test"
|
- name: "Run Installation Instructions Test"
|
||||||
run: make test-linux-install-instructions
|
run: make test-linux-install-instructions
|
||||||
|
|||||||
4
.github/workflows/compare-snapshots.yml
vendored
4
.github/workflows/compare-snapshots.yml
vendored
@@ -16,14 +16,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Determine Go version
|
- name: Determine Go version
|
||||||
id: go
|
id: go
|
||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/pr-opened.yml
vendored
2
.github/workflows/pr-opened.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
pr_open_job:
|
pr_open_job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
|
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
github.rest.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
|
|||||||
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -27,12 +27,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU cross build support
|
- name: Set up QEMU cross build support
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
|
||||||
|
|
||||||
- name: Login to Github Container Registry
|
- name: Login to Github Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
if: startsWith(inputs.tag, 'v')
|
if: startsWith(inputs.tag, 'v')
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ inputs.tag }}
|
ref: ${{ inputs.tag }}
|
||||||
@@ -75,12 +75,12 @@ jobs:
|
|||||||
uses: ./.github/actions/go-version
|
uses: ./.github/actions/go-version
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go.outputs.version }}
|
go-version: ${{ steps.go.outputs.version }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
|
||||||
|
|
||||||
- name: Install cosign
|
- name: Install cosign
|
||||||
uses: sigstore/cosign-installer@main
|
uses: sigstore/cosign-installer@main
|
||||||
@@ -112,7 +112,7 @@ jobs:
|
|||||||
GPG_TTY: /dev/ttys000 # Set the GPG_TTY to avoid issues with pinentry
|
GPG_TTY: /dev/ttys000 # Set the GPG_TTY to avoid issues with pinentry
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v4
|
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
|
||||||
with:
|
with:
|
||||||
version: v1.21.2
|
version: v1.21.2
|
||||||
args: release --clean --timeout=60m --snapshot=${{ !startsWith(inputs.tag, 'v') }}
|
args: release --clean --timeout=60m --snapshot=${{ !startsWith(inputs.tag, 'v') }}
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ jobs:
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.22
|
go-version: 1.22
|
||||||
- name: Update top issues ranking
|
- name: Update top issues ranking
|
||||||
|
|||||||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Prepare website container
|
- name: Prepare website container
|
||||||
|
|||||||
Reference in New Issue
Block a user