Schneegans/dynamic-badges-action

"Bad credentials" bug

HydrolienF opened this issue · 3 comments

I'm triing to update a test file with this github action but I still getting an error.

Is there something wrong in my file ?

result when runing the actions

Run Schneegans/dynamic-badges-action@v1.0.0
  with:
    gistID: 1db057b2a755ff6cfb841d987eeed3ab
    filename: test
    label: Test
    message: 98%
    color: green
result:{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}

.yml action file

name: Update language value

on:
  push:
    branches:
    - "*"

jobs:
  updateValue:
    runs-on: ubuntu-latest
    steps:
    - name: Dynamic Badges
      uses: Schneegans/dynamic-badges-action@v1.0.0
      with:
        auth: ${{ secrets.GIST_SECRET }}
        gistID: 1db057b2a755ff6cfb841d987eeed3ab
        filename: test
        label: Test
        message: 98%
        color: green

Looks mostly good to me. The only thing that seems a bit weird is that you use the filename "test" while the only file in this gist [1] is called "gistfile1.txt". But maybe you changed this in the meantime? The only other thing I could think of is that the secret is not set correctly. Are you sure you checked the gist scope? And copied the correct secret string?

[1] https://gist.github.com/HydrolienF/1db057b2a755ff6cfb841d987eeed3ab

Has this been resolved on your end? Then I would close this issue...

Nvm, issue was incorrectly configured secret.