gifted-balloon-26385
03/24/2025, 9:50 PMaud
would do it but can’t find docs on what that pattern would bered-match-15116
03/24/2025, 9:54 PMsub
that you'll want to customize to something like repo:{org}/{repo}/*
gifted-balloon-26385
03/24/2025, 9:54 PMgifted-balloon-26385
03/24/2025, 9:55 PMred-match-15116
03/24/2025, 9:57 PMgifted-balloon-26385
03/24/2025, 9:57 PMgifted-balloon-26385
03/25/2025, 4:58 PMname: update-esc-image-digest
inputs:
digest:
required: true
esc-env-name:
required: true
runs:
using: "composite"
steps:
- name: Authenticate with Pulumi Cloud
uses: pulumi/auth-actions@v1
with:
organization: <org>
requested-token-type: urn:pulumi:token-type:access_token:team
scope: team:<teamname>
- uses: pulumi/esc-action@v1
- name: Update ESC env digest
shell: bash
run: |
esc env set ${{inputs.esc-env-name}} latestImageDigest ${{ inputs.digest }}
When this runs in our workflow, it looks correct (from GHA logs):
Run esc env set org/project/env latestImageDigest <digest>
esc env set org/project/env latestImageDigest <digest>
But we get this error:
Error: getting environment definition: [404] Not Found: Environment '<env name without org/project>' not found
When I copy paste the command logged by the runner and run it locally:
esc env set org/project/env latestImageDigest <digest>
it works, including if I log out of ESC and log in with an access token for the same team that we’re OIDCing into in this action. Any idea what’s going wrong here?red-match-15116
03/25/2025, 5:17 PMpermissions
directive at the top of your action file? https://github.com/pulumi/auth-actions#:~:text=permissions%3A%0A%20%20id%2Dtoken%3A%20write%0A%20%20contents%3A%20readred-match-15116
03/25/2025, 5:17 PMorg/proj/env
gifted-balloon-26385
03/25/2025, 5:21 PMgifted-balloon-26385
03/25/2025, 5:34 PMfierce-student-84967
04/04/2025, 10:04 PMupdate-esc-image-digest
or see it added to https://github.com/pulumi/examples