Skip to content

Commit

Permalink
testing plan actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gomez385 committed Oct 7, 2024
1 parent 8e678b0 commit cfbbcbd
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,21 @@ jobs:
aws configure set aws_session_token `jq -r '.Token' aws_credentials.json`
echo AWS_SESSION_TOKEN=`jq -r '.Token' aws_credentials.json` >> $GITHUB_ENV
- name: Setup GITHUB Credentials
id: github_credentials
run: |
echo GITHUB_TOKEN=$(python encode_jwt.py "$GITHUB_APP_PEM_FILE" "$GITHUB_APP_INSTALLATION_ID" "$GITHUB_BASE_URL") >> $GITHUB_ENV
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PEM_FILE }}

- name: Use the token
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

#- name: Setup GITHUB Credentials
# id: github_credentials
# run: |
# echo GITHUB_TOKEN=$(python encode_jwt.py "$GITHUB_APP_PEM_FILE" "$GITHUB_APP_INSTALLATION_ID" "$GITHUB_BASE_URL") >> $GITHUB_ENV

- name: Terraform Init
id: init
Expand Down

0 comments on commit cfbbcbd

Please sign in to comment.