Skip to content

Commit 0d7be2d

Browse files
authored
Update GitHub Actions workflows. (#587)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 9b60d6c643780f4a645273cb6a5b3dcce6687d94.
1 parent 453c8ee commit 0d7be2d

File tree

9 files changed

+200
-117
lines changed

9 files changed

+200
-117
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,10 @@ env:
2222
SKIP_SIGNING: ${{ secrets.AZURE_SIGNING_CLIENT_ID == '' &&
2323
secrets.AZURE_SIGNING_CLIENT_SECRET == '' && secrets.AZURE_SIGNING_TENANT_ID
2424
== '' && secrets.AZURE_SIGNING_KEY_VAULT_URI == '' }}
25-
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
2625
PROVIDER: kubernetes-cert-manager
27-
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
2826
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
29-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
32-
PYPI_USERNAME: __token__
33-
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3427
TRAVIS_OS_NAME: linux
35-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3628
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
37-
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
38-
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
39-
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
40-
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
41-
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
4229
GOVERSION: "1.21.x"
4330
NODEVERSION: "20.x"
4431
PYTHONVERSION: "3.11.8"
@@ -75,7 +62,7 @@ jobs:
7562
with:
7663
repo: pulumi/pulumictl
7764
- name: Install Pulumi CLI
78-
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
65+
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
7966
with:
8067
pulumi-version-file: .pulumi.version
8168
- if: github.event_name == 'pull_request'
@@ -199,6 +186,8 @@ jobs:
199186
author_name: Failure in building provider prerequisites
200187
fields: repo,commit,author,action
201188
status: ${{ job.status }}
189+
env:
190+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
202191
build_sdks:
203192
needs: prerequisites
204193
runs-on: pulumi-ubuntu-8core
@@ -232,7 +221,7 @@ jobs:
232221
with:
233222
repo: pulumi/pulumictl
234223
- name: Install Pulumi CLI
235-
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
224+
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
236225
with:
237226
pulumi-version-file: .pulumi.version
238227
- name: Setup Node
@@ -255,7 +244,7 @@ jobs:
255244
distribution: temurin
256245
cache: gradle
257246
- name: Setup Gradle
258-
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
247+
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
259248
with:
260249
gradle-version: "7.6"
261250
- name: Download provider
@@ -348,6 +337,8 @@ jobs:
348337
author_name: Failure while building SDKs
349338
fields: repo,commit,author,action
350339
status: ${{ job.status }}
340+
env:
341+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
351342

352343
tag_release_if_labeled_needs_release:
353344
name: Tag release if labeled as needs-release
@@ -405,7 +396,7 @@ jobs:
405396
with:
406397
repo: pulumi/pulumictl
407398
- name: Install Pulumi CLI
408-
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
399+
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
409400
with:
410401
pulumi-version-file: .pulumi.version
411402
- name: Setup Node
@@ -428,7 +419,7 @@ jobs:
428419
distribution: temurin
429420
cache: gradle
430421
- name: Setup Gradle
431-
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
422+
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
432423
with:
433424
gradle-version: "7.6"
434425
- name: Download provider
@@ -486,6 +477,8 @@ jobs:
486477
author_name: Failure in SDK tests
487478
fields: repo,commit,author,action
488479
status: ${{ job.status }}
480+
env:
481+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
489482
publish:
490483
runs-on: ubuntu-latest
491484
needs: test
@@ -519,7 +512,7 @@ jobs:
519512
with:
520513
repo: pulumi/pulumictl
521514
- name: Install Pulumi CLI
522-
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
515+
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
523516
with:
524517
pulumi-version-file: .pulumi.version
525518
- name: Configure AWS Credentials
@@ -536,6 +529,7 @@ jobs:
536529
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
537530
env:
538531
GORELEASER_CURRENT_TAG: v${{ steps.version.outputs.version }}
532+
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
539533
with:
540534
args: -p 3 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s
541535
version: latest
@@ -546,6 +540,8 @@ jobs:
546540
author_name: Failure in publishing binaries
547541
fields: repo,commit,author,action
548542
status: ${{ job.status }}
543+
env:
544+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
549545
publish_sdk:
550546
runs-on: ubuntu-latest
551547
needs: publish
@@ -576,7 +572,7 @@ jobs:
576572
with:
577573
repo: pulumi/pulumictl
578574
- name: Install Pulumi CLI
579-
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
575+
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
580576
- name: Setup Node
581577
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
582578
with:
@@ -619,15 +615,25 @@ jobs:
619615
- name: Publish SDKs
620616
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
621617
env:
618+
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
622619
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
623620
PYPI_PUBLISH_ARTIFACTS: all
621+
PYPI_USERNAME: __token__
622+
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
623+
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
624+
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
625+
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
626+
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
627+
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
624628
- if: failure() && github.event_name == 'push'
625629
name: Notify Slack
626630
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0
627631
with:
628632
author_name: Failure in publishing SDK
629633
fields: repo,commit,author,action
630634
status: ${{ job.status }}
635+
env:
636+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
631637
lint:
632638
runs-on: ubuntu-latest
633639
steps:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Comment on stale issues"
2+
3+
on:
4+
schedule:
5+
- cron: "46 4 * * *" # run once per day
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-latest
10+
name: Stale issue job
11+
steps:
12+
- uses: aws-actions/stale-issue-cleanup@5650b49bcd757a078f6ca06c373d7807b773f9bc #v7.1.0
13+
with:
14+
issue-types: issues # only look at issues (ignore pull-requests)
15+
16+
# Setting messages to an empty string causes the automation to skip that category
17+
ancient-issue-message: "Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still experiencing this issue, could you leave a quick comment to let us know so we can prioritize it?"
18+
ancient-pr-message: ""
19+
stale-issue-message: ""
20+
stale-pr-message: ""
21+
22+
# These labels are required
23+
stale-issue-label: awaiting-feedback # somewhat confusingly, this is also used for when labeling "ancient" issues
24+
exempt-issue-labels: kind/enhancement,kind/task,kind/epic,kind/engineering, awaiting-upstream # only run on kind/bug for now, ignore awaiting-upstream too.
25+
stale-pr-label: no-pr-activity # unused because we aren't processing PRs
26+
exempt-pr-labels: awaiting-approval # unused because we aren't processing PRs
27+
response-requested-label: response-requested # unused because we don't set a "stale-issue-message" above
28+
29+
# Issue timing
30+
days-before-close: 10000 # this action lacks the option not to close, so just set this indefinitly far in the future
31+
days-before-ancient: 180 # 6 months
32+
33+
# If you don't want to mark a issue as being ancient based on a
34+
# threshold of "upvotes", you can set this here. An "upvote" is
35+
# the total number of +1, heart, hooray, and rocket reactions
36+
# on an issue.
37+
minimum-upvotes-to-exempt: 2
38+
39+
repo-token: ${{ secrets.GITHUB_TOKEN }}
40+
loglevel: DEBUG
41+
# Set dry-run to true to not perform label or close actions.
42+
dry-run: true
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: imports/github-secrets
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) }}

0 commit comments

Comments
 (0)