-
Notifications
You must be signed in to change notification settings - Fork 0
PLT-1616 : aws-params-env-action GHA to use node 20 and updated packages #428
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
Open
mianava
wants to merge
20
commits into
main
Choose a base branch
from
feature/GitHub-Actions-AWS-Params-Node-Upgrade-To-20
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6e8ff8d
Upgrade to Node.js version 20 (which will be depricated in June 2026)…
jonathan-cantu-icf d8c8c30
Update dependencies to latest compatible versions.
mianava aa6e2e9
Migrate Lint config to flat config structure
mianava 37a90d5
Replace jest with typescript, add overrides, add node to support.
mianava 656e051
Update tests for aws-sdk-client-mock compatability
mianava d1ec555
Make CommonJS bundler compatible
mianava 488a01f
Switch bundler from ncc to esbuild, add license generation, support s…
mianava cce421b
Workflow must use updated Node version
mianava 0d52896
Update to use Node20 and updated package versions.
mianava 0c799d6
Merge branch 'main' into feature/GitHub-Actions-AWS-Params-Node-Upgra…
mianava 31eb003
Use the codebuild runners to test github actions.
mianava 5943d54
Modernize to Node 20
mianava 4045eca
Add updated licenses
mianava 483e440
Format with end file space.
mianava 1b48bbd
Test github action retrieves secrets
mianava f3561bf
Build must occur on same system as CI runs
mianava ee40cd6
Test CI can pull ssm parameters when changes are made.
mianava 909eb82
Improve understandability.
mianava ccf56c8
Improve understandability.
mianava 381adb5
Ensure package.json is only json no comments.
mianava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,46 @@ | ||
| name: Test aws-params-env-action | ||
| name: aws-params-env-action-test.yml | ||
| description: 'Tests that github actions roles can pull SSM parameters using the aws-params-env-action.' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - 'actions/aws-params-env-action/**' | ||
| - '!actions/aws-params-env-action/**.md' | ||
| workflow_dispatch: | ||
| - 'services/github-actions-role/data.tf' | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: actions/aws-params-env-action | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| test-and-check-build: | ||
| runs-on: ubuntu-latest | ||
| test-get-params: | ||
| runs-on: codebuild-cdap-${{ contains(fromJSON('["prod", "sandbox"]'), matrix.env) && 'prod' || 'non-prod'}}-${{github.run_id}}-${{github.run_attempt}} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| app: [ab2d, bcda, dpc] | ||
| env: [dev, test, sandbox, prod] | ||
| include: | ||
| - app: cdap | ||
| env: test | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - run: npm ci | ||
| - run: npm run all | ||
| - uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8 # v5.1.0 | ||
| with: | ||
| role-to-assume: arn:aws:iam::${{ contains(fromJSON('["dev", "test"]'), matrix.env) && secrets.NON_PROD_ACCOUNT || secrets.PROD_ACCOUNT }}:role/delegatedadmin/developer/${{ matrix.app }}-${{ matrix.env }}-github-actions | ||
| aws-region: ${{ vars.AWS_REGION }} | ||
|
|
||
| - uses: cmsgov/cdap/actions/aws-params-env-action@main | ||
| env: | ||
| AWS_REGION: ${{ vars.AWS_REGION }} | ||
| with: | ||
| params: | | ||
| SONAR_HOST_URL=/sonarqube/url | ||
|
|
||
| - name: Verify env vars were set | ||
| run: | | ||
| if [ -z "$SONAR_HOST_URL" ]; then | ||
| echo "❌ SONAR_HOST_URL was not set" | ||
| exit 1 | ||
| else | ||
| echo "✅ SONAR_HOST_URL is set" | ||
| fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.