Skip to content

Commit e11e27e

Browse files
authored
[internal] Update GitHub Actions workflow files (#151)
1 parent 990703a commit e11e27e

20 files changed

+53
-53
lines changed

.github/actions/download-bin/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
using: "composite"
66
steps:
77
- name: Download provider + tfgen binaries
8-
uses: actions/[email protected]
8+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
99
with:
1010
name: xyz-provider.tar.gz
1111
path: ${{ github.workspace }}/bin

.github/actions/download-sdk/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
using: "composite"
1111
steps:
1212
- name: Download ${{ inputs.language }} SDK
13-
uses: actions/[email protected]
13+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
1414
with:
1515
name: ${{ inputs.language }}-sdk.tar.gz
1616
path: ${{ github.workspace}}/sdk/

.github/actions/setup-tools/action.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
steps:
2121
- name: Install Go
2222
if: inputs.tools == 'all' || contains(inputs.tools, 'go')
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
2424
with:
2525
go-version: "1.21.x"
2626
cache-dependency-path: |
@@ -30,52 +30,52 @@ runs:
3030
3131
- name: Install pulumictl
3232
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumictl')
33-
uses: jaxxstorm/[email protected]
33+
uses: jaxxstorm/action-install-gh-release@71d17cb091aa850acb2a1a4cf87258d183eb941b # v1.11.0
3434
with:
3535
tag: v0.0.46
3636
repo: pulumi/pulumictl
3737

3838
- name: Install Pulumi CLI
3939
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumicli')
40-
uses: pulumi/actions@v5
40+
uses: pulumi/actions@c7fad9e2f0b79653172b36538b8b34b3c0291952 # v6
4141
with:
4242
pulumi-version: "dev"
4343

4444
- name: Install Schema Tools
4545
if: inputs.tools == 'all' || contains(inputs.tools, 'schema-tools')
46-
uses: jaxxstorm/[email protected]
46+
uses: jaxxstorm/action-install-gh-release@71d17cb091aa850acb2a1a4cf87258d183eb941b # v1.11.0
4747
with:
4848
repo: pulumi/schema-tools
4949

5050
- name: Setup Node
5151
if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs')
52-
uses: actions/setup-node@v4
52+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
5353
with:
5454
node-version: 20.x
5555
registry-url: https://registry.npmjs.org
5656

5757
- name: Setup DotNet
5858
if: inputs.tools == 'all' || contains(inputs.tools, 'dotnet')
59-
uses: actions/setup-dotnet@v4
59+
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4
6060
with:
6161
dotnet-version: 6.0.x
6262

6363
- name: Setup Python
6464
if: inputs.tools == 'all' || contains(inputs.tools, 'python')
65-
uses: actions/setup-python@v5
65+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
6666
with:
6767
python-version: 3.11.8
6868

6969
- name: Setup Java
7070
if: inputs.tools == 'all' || contains(inputs.tools, 'java')
71-
uses: actions/setup-java@v4
71+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
7272
with:
7373
cache: gradle
7474
distribution: temurin
7575
java-version: 11
7676

7777
- name: Setup Gradle
7878
if: inputs.tools == 'all' || contains(inputs.tools, 'java')
79-
uses: gradle/gradle-build-action@v3
79+
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
8080
with:
8181
gradle-version: 7.6

.github/actions/upload-bin/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
shell: bash
99
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-xyz pulumi-tfgen-xyz
1010
- name: Upload artifacts
11-
uses: actions/[email protected]
11+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
1212
with:
1313
name: xyz-provider.tar.gz
1414
path: ${{ github.workspace }}/bin/provider.tar.gz

.github/actions/upload-sdk/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
shell: bash
1414
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} .
1515
- name: Upload artifacts
16-
uses: actions/[email protected]
16+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
1717
with:
1818
name: ${{ inputs.language }}-sdk.tar.gz
1919
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz

.github/workflows/build_provider.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
arch: amd64
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/[email protected]
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Setup tools
@@ -40,7 +40,7 @@ jobs:
4040
- name: Prepare local workspace before restoring previously built
4141
run: make prepare_local_workspace
4242
- name: Download schema-embed.json
43-
uses: actions/[email protected]
43+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4444
with:
4545
# Use a pattern to avoid failing if the artifact doesn't exist
4646
pattern: schema-embed.*
@@ -52,7 +52,7 @@ jobs:
5252
- name: Build & package provider
5353
run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
5454
- name: Upload artifacts
55-
uses: actions/[email protected]
55+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
5656
with:
5757
name: pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
5858
path: bin/pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz

.github/workflows/build_sdk.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
- python
4141
steps:
4242
- name: Checkout Repo
43-
uses: actions/[email protected]
43+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
with:
4545
persist-credentials: false
4646
- name: Cache examples generation
47-
uses: actions/cache@v4
47+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
4848
with:
4949
path: |
5050
.pulumi/examples-cache

.github/workflows/license.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/[email protected]
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Setup tools

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/[email protected]
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Install go
37-
uses: actions/setup-go@v5
37+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
3838
with:
3939
# The versions of golangci-lint and setup-go here cross-depend and need to update together.
4040
go-version: 1.23
@@ -48,7 +48,7 @@ jobs:
4848
continue-on-error: true
4949
run: make upstream
5050
- name: golangci-lint
51-
uses: golangci/golangci-lint-action@v6
51+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
5252
with:
5353
version: v1.60
5454
working-directory: provider

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ jobs:
5050
runs-on: ubuntu-latest
5151
steps:
5252
- name: Free Disk Space (Ubuntu)
53-
uses: jlumbroso/[email protected]
53+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
5454
with:
5555
tool-cache: false
5656
swap-storage: false
5757
- name: Checkout Repo
58-
uses: actions/[email protected]
58+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5959
with:
6060
persist-credentials: false
6161
- name: Configure AWS Credentials
62-
uses: aws-actions/[email protected]
62+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
6363
with:
6464
aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }}
6565
aws-region: us-west-2
@@ -137,7 +137,7 @@ jobs:
137137
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
138138
steps:
139139
- name: Checkout Repo
140-
uses: actions/[email protected]
140+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
141141
with:
142142
persist-credentials: false
143143
- name: Setup tools

.github/workflows/prerelease.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
8080
steps:
8181
- name: Checkout Repo
82-
uses: actions/[email protected]
82+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8383
with:
8484
persist-credentials: false
8585
- name: Setup tools

.github/workflows/prerequisites.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ jobs:
4343
version: ${{ steps.provider-version.outputs.version }}
4444
steps:
4545
- name: Checkout Repo
46-
uses: actions/[email protected]
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747
with:
4848
persist-credentials: false
49-
- uses: pulumi/provider-version-action@v1
49+
- uses: pulumi/provider-version-action@0391d47b9b0d865d33dd0a295b1fcf9f7021dd4c # v1.5.3
5050
id: provider-version
5151
with:
5252
set-env: 'PROVIDER_VERSION'
5353
- name: Cache examples generation
54-
uses: actions/cache@v4
54+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
5555
with:
5656
path: |
5757
.pulumi/examples-cache
@@ -79,7 +79,7 @@ jobs:
7979
} >> "$GITHUB_ENV"
8080
- if: inputs.is_pr && inputs.is_automated == false
8181
name: Comment on PR with Details of Schema Check
82-
uses: thollander/[email protected]
82+
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
8383
with:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8585
comment_tag: schemaCheck
@@ -93,7 +93,7 @@ jobs:
9393
uses: ./.github/actions/upload-bin
9494

9595
- name: Upload schema-embed.json
96-
uses: actions/[email protected]
96+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
9797
with:
9898
name: schema-embed.json
9999
path: provider/cmd/pulumi-resource-xyz/schema-embed.json

.github/workflows/publish.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
if: inputs.skipGoSdk && inputs.isPrerelease == false
4747
run: echo "Can't skip Go SDK for stable releases. This is likely a bug in the calling workflow." && exit 1
4848
- name: Checkout Repo
49-
uses: actions/[email protected]
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050
with:
5151
persist-credentials: false
5252
- name: Setup tools
@@ -56,7 +56,7 @@ jobs:
5656
- name: Create dist directory
5757
run: mkdir -p dist
5858
- name: Download provider assets
59-
uses: actions/[email protected]
59+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
6060
with:
6161
pattern: pulumi-resource-xyz-v${{ inputs.version }}-*
6262
path: dist
@@ -79,7 +79,7 @@ jobs:
7979
echo 'EOF'
8080
} >> "$GITHUB_OUTPUT"
8181
- name: Create GH Release
82-
uses: softprops/action-gh-release@v2
82+
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2
8383
if: inputs.isPrerelease == false
8484
with:
8585
tag_name: v${{ inputs.version }}
@@ -98,7 +98,7 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: Checkout Repo
101-
uses: actions/[email protected]
101+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102102
with:
103103
# Persist credentials so we can push back to the repo
104104
persist-credentials: true
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
tools: pulumictl, pulumicli, dotnet, go, nodejs, python
109109
- name: Publish SDKs
110-
uses: pulumi/[email protected]
110+
uses: pulumi/pulumi-package-publisher@1c0359ba74243cf6651efacfd839c751d8ff87e2 # v0.0.20
111111
with:
112112
sdk: all,!java
113113
version: ${{ inputs.version }}
@@ -139,7 +139,7 @@ jobs:
139139
runs-on: ubuntu-latest
140140
steps:
141141
- name: Checkout Repo
142-
uses: actions/[email protected]
142+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143143
with:
144144
persist-credentials: false
145145
- name: Clean up release labels

.github/workflows/pull-request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout Repo
27-
uses: actions/[email protected]
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
with:
2929
persist-credentials: false
3030
- name: Comment PR
31-
uses: thollander/[email protected]
31+
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
3232
with:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
message: >

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
8686
steps:
8787
- name: Checkout Repo
88-
uses: actions/[email protected]
88+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8989
with:
9090
persist-credentials: false
9191
- name: Setup tools

.github/workflows/resync-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout Repo
28-
uses: actions/[email protected]
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
with:
3030
# Persist credentials so we can push a new branch.
3131
persist-credentials: true
3232
- name: Checkout repo
33-
uses: actions/[email protected]
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
with:
3535
path: ci-mgmt
3636
repository: pulumi/ci-mgmt
@@ -65,7 +65,7 @@ jobs:
6565
- name: Build
6666
run: make build
6767
- name: Create PR (no linked issue)
68-
uses: peter-evans/create-pull-request@v3.12.0
68+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
6969
with:
7070
author: pulumi-bot <[email protected]>
7171
base: main

.github/workflows/run-acceptance-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
name: Create URL to the run output
7676
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT"
7777
- name: Update with Result
78-
uses: peter-evans/create-or-update-comment@v1
78+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
7979
with:
8080
body: "Please view the PR build: ${{ steps.run-url.outputs.run-url }}"
8181
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
@@ -100,7 +100,7 @@ jobs:
100100
- lint
101101
runs-on: ubuntu-latest
102102
steps:
103-
- uses: guibranco/github-status-action-v2@0849440ec82c5fa69b2377725b9b7852a3977e76
103+
- uses: guibranco/github-status-action-v2@0849440ec82c5fa69b2377725b9b7852a3977e76 # v1.1.13
104104
with:
105105
authToken: ${{secrets.GITHUB_TOKEN}}
106106
# Write an explicit status check called "Sentinel" which will only pass if this code really runs.
@@ -127,13 +127,13 @@ jobs:
127127
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
128128
steps:
129129
- name: Checkout Repo
130-
uses: actions/[email protected]
130+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131131
with:
132132
ref: ${{ env.PR_COMMIT_SHA }}
133133
persist-credentials: false
134134
- name: Checkout p/examples
135135
if: matrix.testTarget == 'pulumiExamples'
136-
uses: actions/[email protected]
136+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
137137
with:
138138
repository: pulumi/examples
139139
path: p-examples

0 commit comments

Comments
 (0)