Hi there, I’m using github action `pulumi/action@v...
# general
c
Hi there, I’m using github action
pulumi/action@v4
and getting error, base in code it’s refer to
Copy code
def get_config_env() -> Dict[str, Any]:
    """
    Returns the environment map that will be used for config checking when variables aren't set.
    """
    if "PULUMI_CONFIG" in os.environ:
        env_config = os.environ["PULUMI_CONFIG"]
        return json.loads(env_config)
    return {}
but from https://www.pulumi.com/docs/reference/cli/environment-variables/ say
PULUMI_CONFIG
> This environment variable is ignored during normal Pulumi operations -- e.g.,
up
,
preview
, etc. github action yaml file is
Copy code
- uses: pulumi/actions@v4
        with:
          command: preview
          stack-name: ${{ matrix.stack }}
          comment-on-pr: false
          github-token: ${{ secrets.GITHUB_TOKEN }}
          cloud-url: "<s3://system-pulumi/batdongsan?endpoint=s3.bds.lc&s3ForcePathStyle=true>"
          work-dir: stacks
          target: ${{ matrix.target }}
        env:
          AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
          AWS_REGION: ${{secrets.AWS_REGION}}
          AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
          CLOUDFLARE_API_KEY: ${{secrets.CLOUDFLARE_API_KEY}}
          CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
          PULUMI_CONFIG_PASSPHRASE: ${{secrets.PULUMI_CONFIG_PASSPHRASE}}
So I’m thinking there is have a misconfigured, can you help me take a look?
e
Pretty sure this is the same issue I hit the other week (although I had a dotnet program, not python) it should be fixed in the next release of pulumi/action. Or if you want you can change your workflow to the latest commit which has this fix in:
Copy code
uses: pulumi/actions@ddcac955fd004d13bc60bd0bdbbc389b1f524216
c
Confirmed pulumi/action below don’t have issue
Copy code
uses: pulumi/actions@ddcac955fd004d13bc60bd0bdbbc389b1f524216