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

aws-secretsmanager-get-secrets@v2 using node 20 instead of node 16 #161

Closed
dpakpdl opened this issue Jul 17, 2024 · 3 comments
Closed

aws-secretsmanager-get-secrets@v2 using node 20 instead of node 16 #161

dpakpdl opened this issue Jul 17, 2024 · 3 comments

Comments

@dpakpdl
Copy link

dpakpdl commented Jul 17, 2024

Running on with github runners and we're running into issues where @v2 is using node20 instead of node16.

Steps:

  1. Run aws-actions/aws-secretsmanager-get-secrets@v2
    /home/ec2-user/actions-runner/externals/node20/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/ec2-user/actions-runner/externals/node20/bin/node) /home/ec2-user/actions-runner/externals/node20/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /home/ec2-user/actions-runner/externals/node20/bin/node)

I added ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true in the env but the same issues persists. The following is my action file.

name: Test-Deploy

on:
    workflow_dispatch:

env:
    ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
    Docker_Image_Build_Deploy:
        runs-on: backend
        steps:
            - name: Configure AWS credentials
              uses: aws-actions/configure-aws-credentials@v2
              with:
                  aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
                  aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
                  aws-region: ${{ secrets.AWS_REGION }}

            - name: Get Secrets from AWS Secrets Manager
              id: get-secrets
              uses: aws-actions/aws-secretsmanager-get-secrets@v2
              with:
                  secret-ids: REDIS_PASSWORD
@jirkafajfr
Copy link
Member

Hi Deepak,

node 16 reached end of life late last year. Github asked the action owners to migrate to the Node 20 (link). The @v2 was created to run with the node 20 from the begging. If you like you can try to reference original @v1 that is still using node 16.

@dpakpdl
Copy link
Author

dpakpdl commented Jul 18, 2024

@jirkafajfr I don't know why I am facing this. Any solution to fix it instead of using @v1?

@jirkafajfr
Copy link
Member

I don't think that this is problem of the SecretsManager Action, but rather your runner can't start the Node 20. As pointed out in previous message, we can't downgrade to the Node 16 (see one of our previous tickets #69) since it was deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants