sparse-intern-71089
05/06/2021, 2:25 AMbrainy-church-78120
05/06/2021, 2:32 AMlittle-van-8457
05/06/2021, 11:30 AMbrainy-church-78120
05/06/2021, 12:54 PMlittle-van-8457
05/07/2021, 3:06 AMbrainy-church-78120
05/07/2021, 4:13 AMlittle-van-8457
05/07/2021, 6:56 AMlittle-van-8457
05/08/2021, 3:00 AMname: Preview or update Pulumi app serverless/aws-typescript/dev
on:
push:
branches:
- master
paths:
- '**/*'
pull_request:
branches:
- master
paths:
- '**/*'
# These are the environment variables that jobs in the workflow have access to.
# By defining them here, all jobs/steps will have access to these variables.
env:
# IMPORTANT! You must map the env vars for your cloud provider here even though you add them as secrets
# to this repository.
# See the setup page for cloud providers here: <https://www.pulumi.com/docs/intro/cloud-providers/>.
# For example, if you are using AWS, then you should add the following:
ALICLOUD_ACCESS_KEY: ${{ secrets.ALICLOUD_ACCESS_KEY }}
ALICLOUD_SECRET_KEY: ${{ secrets.ALICLOUD_SECRET_KEY }}
ALICLOUD_REGION: ${{ secrets.ALICLOUD_REGION }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_STACK_NAME: serverless/aws-typescript/dev
PULUMI_WORKING_DIRECTORY: ./
jobs:
pulumi:
name: Pulumi
runs-on: ubuntu-latest
steps:
# Turnstyle is used to prevent multiple push jobs from running at the same time. We
# limit it to push jobs to allow PR jobs to run concurrently.
- name: Turnstyle
if: ${{ github.event_name == 'push' }}
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v1.0.1
- name: Restore npm dependencies
run: |
npm --prefix $PULUMI_WORKING_DIRECTORY ci
# If you are using yarn instead with Pulumi, comment the above line and uncomment the below line.
# yarn install --cwd $PULUMI_WORKING_DIRECTORY
- name: PR previews
run: pulumi preview -s $PULUMI_STACK_NAME --cwd $PULUMI_WORKING_DIRECTORY
if: ${{ github.event_name == 'pull_request' }}
- name: Apply infrastructure update
run: pulumi update --yes -s $PULUMI_STACK_NAME --cwd $PULUMI_WORKING_DIRECTORY
if: ${{ github.event_name == 'push' }}
The PULUMI_ACCESS_TOKEN has been set in the github secrets environment which seems to be unavailable. Please help me with the error. Thanks!!little-van-8457
05/08/2021, 3:07 AMbrainy-church-78120
05/09/2021, 7:55 PMclever-sunset-76585
05/10/2021, 7:02 PMclever-sunset-76585
05/11/2021, 5:09 PM***
characters like in the screenshot I have attached. In my case it was because it was an automated PR created by Dependabot. Dependabot PRs are treated like forks and so an approval was required in order for the workflow to access the repo secrets. Similarly, in your case it could be that the user who created the PR does not have access to read the secrets in your case.little-van-8457
05/17/2021, 11:54 AMlittle-van-8457
05/17/2021, 12:00 PMclever-sunset-76585
05/17/2021, 4:42 PMimport
resource option to import a resource?clever-sunset-76585
05/17/2021, 4:44 PMI created secrets content in âEnvironment secretsâ, which should be created in âRepository secretsâWonderful! If managing environments works for your setup, thatâs good! Itâs an easy way to manage multiple sets of secrets, too.
little-van-8457
05/19/2021, 1:56 AM