Skip to content

Commit c7606c5

Browse files
committed
[internal] Update GitHub Actions workflow files
1 parent a0c3cca commit c7606c5

4 files changed

Lines changed: 28 additions & 9 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747

4848
- name: Install Pulumi CLI
4949
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumicli')
50-
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6
50+
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6
5151
with:
5252
pulumi-version: "dev"
5353

.github/workflows/lint.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ jobs:
5050
- name: prepare workspace
5151
continue-on-error: true
5252
run: make prepare_local_workspace
53-
54-
# TODO[pulumi/ci-mgmt#1622] unfortunate workaround for mysterious lint failure
55-
#
56-
# - name: golangci-lint
57-
# uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
58-
# with:
59-
# version: v1.64.6
60-
# working-directory: provider
53+
- name: golangci-lint
54+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6
55+
with:
56+
version: v1.64.6
57+
working-directory: provider

.github/workflows/upgrade-java.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ permissions:
2323
pull-requests: write
2424

2525
env:
26+
27+
# upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+
# setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+
GH_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2732

2833
jobs:
@@ -58,5 +63,6 @@ jobs:
5863
env:
5964
V: ${{inputs.version}}
6065
REPO: ${{github.repository}}
66+
GH_TOKEN: ${{env.GH_TOKEN}}
6167
run: |
6268
upgrade-provider "$REPO" --kind=java --java-version="$V"

mise.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
3+
[tools]
4+
5+
# Runtimes
6+
go = '1.21'
7+
node = '20'
8+
python = '3.11.8'
9+
dotnet = '8.0'
10+
# Corretto version used as Java SE/OpenJDK version no longer offered
11+
java = 'corretto-11'
12+
13+
# Executable tools
14+
pulumi = 'latest'
15+
"go:github.com/pulumi/pulumictl/cmd/pulumictl" = 'latest'
16+
gradle = '7.6'

0 commit comments

Comments
 (0)