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

Credentials not found in github action #12

Open
gr8temi opened this issue Sep 20, 2024 · 1 comment
Open

Credentials not found in github action #12

gr8temi opened this issue Sep 20, 2024 · 1 comment

Comments

@gr8temi
Copy link

gr8temi commented Sep 20, 2024

I have a pipeline like this

name: "Lint and Test"
description: "Run linters"

runs:
  using: "composite"
  steps:
    - name: Check out code
      uses: actions/checkout@v3

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: "3.11"
    
    - name: Setup DynamoDB Local
        uses: rrainn/[email protected]

    - name: Set up cache for Poetry dependencies
      id: cache-poetry
      uses: actions/cache@v3
      with:
        path: |
          ~/.cache/pypoetry/cache
          ~/.cache/pypoetry/artifacts
          .venv
        key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
        restore-keys: |
          ${{ runner.os }}-poetry-

    - name: Install Poetry
      run: |
        pip install poetry
      shell: bash

    - name: Install dependencies
      run: |
        poetry lock --no-update 
        poetry install --no-interaction --no-ansi
      shell: bash

    - name: Run linters
      run: |
        poetry run isort .
        poetry run black .
        poetry run pylint **/*.py
        poetry run pytest
      shell: bash

But when the test runs I keep getting this error
ERROR tests/test_webhook.py::test_webhook_decode_token_failed - pynamodb.exceptions.TableError: Unable to describe table: Unable to locate credentials

How best do I run the pipeline

@fishcharlie
Copy link
Member

You should be able to use dummy credentials. Doesn't matter what you pass in, it just has to be something.

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