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

Missing Authentication Token #585

Closed
kim00425 opened this issue Nov 28, 2022 · 2 comments
Closed

Missing Authentication Token #585

kim00425 opened this issue Nov 28, 2022 · 2 comments
Labels
bug Something isn't working needs-triage This issue still needs to be triaged

Comments

@kim00425
Copy link

Describe the bug

Today I did a lambda deployment with my code. But I got the message 'Missing Authentication Token'.

When I deployed to my local environment, it was deployed normally. But when I try to deploy from git-actions. It failed with the message 'Missing Authentication Token'.

What should I check?? this is my action.yml

permissions:
  id-token: write
  contents: read


jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    environment: production
    env:
      STAGE: prod

    steps:
      - name: Checkout sources
        with:
          ref: ${{ github.ref }}
        uses: actions/checkout@v3
      - name: Configure AWS credentials for Production
        uses: aws-actions/configure-aws-credentials@v1-node16
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-2
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '16'
      - name: Downgrade NPM to v8
        run: |
          npm install -g npm@8 npm-cli-login
      - name: Install Serverless Framework
        run: npm install -g serverless@1
      - name: Install Node Modules
        run: npm ci
      - name: Serverless deploy
        run: sls deploy --conceal --stage ${{ env.STAGE }}
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          AWS_REGION: us-east-2

스크린샷 2022-11-28 오후 4 49 54

Expected Behavior

i wanna successful deploy

Current Behavior

스크린샷 2022-11-28 오후 4 49 54

Reproduction Steps

i dont have

Possible Solution

No response

Additional Information/Context

No response

@kim00425 kim00425 added bug Something isn't working needs-triage This issue still needs to be triaged labels Nov 28, 2022
@kim00425
Copy link
Author

solved issue with this aws/aws-sdk-js#4286

@github-actions
Copy link

⚠️Comment Visibility Warning⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant