Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): use OIDC and encrypt release secrets #1355

Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3fe6947
chore(ci): confirm workflow_run event
heitorlessa Jul 22, 2022
61a4922
chore: dummy for PR test
heitorlessa Jul 22, 2022
b44b462
chore: print full event depth
heitorlessa Jul 22, 2022
fd3fc0f
chore: print full workflow event depth
heitorlessa Jul 22, 2022
2de2bac
chore: debug full event
heitorlessa Jul 22, 2022
0bdac56
Merge branch 'develop' of https://github.com/awslabs/aws-lambda-power…
heitorlessa Jul 22, 2022
879fcbe
chore(ci): experiment hardening origin
heitorlessa Jul 22, 2022
3152552
Merge pull request #284 from heitorlessa/chore/dummy
heitorlessa Jul 22, 2022
b1973b2
chore(ci): experiment hardening origin
heitorlessa Jul 22, 2022
ab6fe51
fix(ci): unexpected symbol due to double quotes...
heitorlessa Jul 22, 2022
79c4fbd
fix(ci): remove unsupported env in workflow_call
heitorlessa Jul 22, 2022
d5827e3
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
b9e357b
chore(ci): test default env
heitorlessa Jul 22, 2022
9e1acc5
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
53ecc24
fix(ci): only event is resolved in cond
heitorlessa Jul 22, 2022
cfaa4cc
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
e38e96e
chore(ci): test env expr
heitorlessa Jul 22, 2022
7bea840
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
e81d6b3
fix(ci): cond doesnt support two expr w/ env
heitorlessa Jul 22, 2022
038b88d
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
93f56e9
chore(ci): test upstream job skip
heitorlessa Jul 22, 2022
c18e6a7
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
8d1744a
Merge pull request #285 from heitorlessa/chore/skip-dep-workflow
heitorlessa Jul 22, 2022
7f516ea
Merge branch 'develop' of https://github.com/awslabs/aws-lambda-power…
heitorlessa Jul 22, 2022
59d0309
chore: remove leftover from fork one more time
heitorlessa Jul 22, 2022
2ec7418
Merge branch 'develop' of https://github.com/heitorlessa/aws-lambda-p…
heitorlessa Jul 22, 2022
f9e724b
chore(ci): use OIDC creds and use encrypted secrets
heitorlessa Jul 22, 2022
09cf051
Merge branch 'develop' of https://github.com/awslabs/aws-lambda-power…
heitorlessa Jul 22, 2022
28edb26
chore: delete leftover
heitorlessa Jul 22, 2022
35560e1
chore: remove leftover from fork one more time
heitorlessa Jul 22, 2022
def2f58
Merge branch 'chore/encrypt-release-secrets' of https://github.com/he…
heitorlessa Jul 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:

jobs:
release:
environment: release
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}
Expand Down Expand Up @@ -84,16 +85,15 @@ jobs:
env:
PYPI_USERNAME: __token__
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.AWS_SAR_ROLE_ARN }}
- name: publish lambda layer in SAR by triggering the internal codepipeline
run: |
aws ssm put-parameter --name "powertools-python-release-version" --value $RELEASE_VERSION --overwrite
aws codepipeline start-pipeline-execution --name ${{ secrets.CODEPIPELINE_NAME }}
env:
# Maintenance: Migrate to new OAuth mechanism
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-1
AWS_DEFAULT_OUTPUT: json
aws codepipeline start-pipeline-execution --name ${{ secrets.AWS_SAR_PIPELINE_NAME }}

docs:
needs: release
Expand Down