Skip to content

Commit

Permalink
Merge pull request #44 from hashicorp/releng-294-address-deprecations
Browse files Browse the repository at this point in the history
Fix GHA deprecations
  • Loading branch information
dekimsey committed May 25, 2023
2 parents e20c6be + 482abba commit 90ea6bd
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# Dogfood this Action to build its own CLI.
- uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- { runner: ubuntu-latest, os: linux, arch: amd64, env: CGO_ENABLED=0 }
- { runner: ubuntu-latest, os: windows, arch: amd64, env: CGO_ENABLED=0 }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Build
uses: hashicorp/actions-go-build@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-matrix.yml.currentbranch.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Build
uses: hashicorp/actions-go-build@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example.yml.currentbranch.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Build CLI Binaries
run: make release/zips
- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-test-suite-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- { assert: failure, file: this-file-does-not-exist, when: result file is missing }
- { assert: failure, file: corrupt, when: result file is corrupt }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./verify/self-test
with:
assert: ${{ matrix.assert }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/self-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./self-test
with:
reproducible: ${{ matrix.reproducible }}
Expand All @@ -49,7 +49,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./self-test
with:
reproducible: ${{ matrix.reproducible }}
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- { reproducible: report, os: darwin, arch: arm64, want: success }
- { reproducible: nope, os: darwin, arch: arm64, want: success }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
if: runner.os == 'macOS'
- uses: ./self-test
if: runner.os == 'macOS'
Expand All @@ -104,7 +104,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./self-test
with:
reproducible: ${{ matrix.reproducible }}
Expand All @@ -127,7 +127,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./self-test
with:
reproducible: ${{ matrix.reproducible }}
Expand All @@ -149,7 +149,7 @@ jobs:
- { reproducible: report, want: failure }
- { reproducible: nope, want: failure }
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: ./self-test
with:
reproducible: ${{ matrix.reproducible }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
go-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.18
- uses: actions/checkout@v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- run: make test/go
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ runs:
steps:

# Setup Go for CLI compilation.
- uses: actions/setup-go@v3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.18

Expand All @@ -90,7 +90,7 @@ runs:
run: ./action-setup

# Setup Go
- uses: actions/setup-go@v3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ inputs.go_version }}

Expand Down Expand Up @@ -119,7 +119,7 @@ runs:

# Upload Primary Build
- name: Upload Primary Zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{ env.ZIP_NAME }}
path: ${{ env.ZIP_PATH_PRIMARY }}
Expand All @@ -135,7 +135,7 @@ runs:
# Upload Local Verification Build
- name: Upload Local Verification Zip
if: inputs.reproducible == 'assert' || inputs.reproducible == 'report'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{ env.ZIP_NAME }}.local-verification-build.zip
path: ${{ env.ZIP_PATH_VERIFICATION }}
Expand Down Expand Up @@ -168,7 +168,7 @@ runs:
# Upload Verification Result
- name: Upload Verification Result
if: inputs.reproducible == 'assert' || inputs.reproducible == 'report'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{ env.ZIP_NAME }}.verificationresult.json
path: ${{ env.VERIFICATION_RESULT }}
Expand Down
6 changes: 3 additions & 3 deletions verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
steps:

# Setup Go for CLI compilation.
- uses: actions/setup-go@v2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.18

Expand Down Expand Up @@ -74,7 +74,7 @@ runs:
$RUN_CLI inspect -build-config "$RESULT_FILE"
# Setup Go For Running the Verification Build
- uses: actions/setup-go@v2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -95,7 +95,7 @@ runs:
# Store reproducibility report.
- name: Upload Reproducibility Report
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
path: ${{ env.VERIFICATION_RESULT }}
name: ${{ env.OUTPUT_FILE }}
Expand Down

0 comments on commit 90ea6bd

Please sign in to comment.