Skip to content

Commit 82d4371

Browse files
authored
[DOWNSTREAM TEST] Update GitHub Actions workflows. (#328)
This PR was automatically generated by the pull-request workflow in the pulumi/ci-mgmt repo, from commit ef7f10ea0e2bfb6bb0702a514da8abe0354a7b56.
1 parent e5d9681 commit 82d4371

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
permissions: write-all # Equivalent to default permissions plus id-token: write
2+
name: Export secrets to ESC
3+
on: [workflow_dispatch]
4+
jobs:
5+
export-to-esc:
6+
runs-on: ubuntu-latest
7+
name: export GitHub secrets to ESC
8+
steps:
9+
- name: Generate a GitHub token
10+
id: generate-token
11+
uses: actions/create-github-app-token@v1
12+
with:
13+
app-id: 1256780 # Export Secrets GitHub App
14+
private-key: ${{ secrets.EXPORT_SECRETS_PRIVATE_KEY }}
15+
- name: Export secrets to ESC
16+
uses: pulumi/esc-export-secrets-action@v1
17+
with:
18+
organization: pulumi
19+
org-environment: github-secrets/${{ github.repository_owner }}-${{ github.event.repository.name }}
20+
exclude-secrets: EXPORT_SECRETS_PRIVATE_KEY
21+
github-token: ${{ steps.generate-token.outputs.token }}
22+
oidc-auth: true
23+
oidc-requested-token-type: urn:pulumi:token-type:access_token:organization
24+
env:
25+
GITHUB_SECRETS: ${{ toJSON(secrets) }}

.github/workflows/weekly-pulumi-update.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ jobs:
4949
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5050
with:
5151
python-version: ${{ env.PYTHONVERSION }}
52+
- name: Setup Java
53+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
54+
with:
55+
java-version: ${{ env.JAVAVERSION }}
56+
distribution: temurin
57+
cache: gradle
58+
- name: Setup Gradle
59+
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
60+
with:
61+
gradle-version: "7.6"
5262
- name: Update Pulumi/Pulumi
5363
id: gomod
5464
run: >-

0 commit comments

Comments
 (0)