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

Resource not accessible by personal access token #545

Open
bthornton191 opened this issue Nov 25, 2024 · 0 comments
Open

Resource not accessible by personal access token #545

bthornton191 opened this issue Nov 25, 2024 · 0 comments

Comments

@bthornton191
Copy link

bthornton191 commented Nov 25, 2024

Is there a workaround for this? As far as I can tell, this issue makes the action unusable for jobs that run longer than 24 hours. Am I missing something?

If I DO NOT provide a token

- name: Generate Set ${{ matrix.set }}${{ matrix.variant }} Test Report 
  uses: dorny/test-reporter@v1
  with:
    name: Results Set ${{ matrix.set }}${{ matrix.variant }}      
    path: qual/report/set_${{ matrix.set }}${{ matrix.variant }}.json    
    reporter: mocha-json

Any job that runs for more than 24 hours results in Error: HttpError: Bad credentials

image

If I DO provide a token

- name: Generate Set ${{ matrix.set }}${{ matrix.variant }} Test Report 
  uses: dorny/test-reporter@v1
  with:
    name: Results Set ${{ matrix.set }}${{ matrix.variant }}      
    path: qual/report/set_${{ matrix.set }}${{ matrix.variant }}.json    
    reporter: mocha-json
    token: ${{ secrets.TEST_REPORTER_TOKEN }}  

ALL jobs result in Error: HttpError: Resource not accessible by personal access token

image

I'm using a fine-grained token with
Read access to metadata
Read and Write access to actions, administration, and workflows

image

Originally posted by @bthornton191 in #150 (comment)

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

1 participant