game-ci / unity-test-runner

Run tests for any Unity project
https://github.com/marketplace/actions/unity-test-runner
MIT License
216 stars 136 forks source link

Got Access token is unavailable Error when use githubToken option #161

Closed Haruka0640 closed 2 years ago

Haruka0640 commented 2 years ago

**Description of the bug

**How to reproduce

  1. Create a Github personal access token with full access and no expiration date.
  2. Pass the PAT to the githubToken option of game-ci/unity-test-runner@v2.
  3. Action failed.

expected behavior.

Additional details

My workflow ``` name: Test, Build, and Release My Demo on: workflow_dispatch: {} # schedule: # - cron: '0 19 * * 1-5' jobs: tests: name: Test Code Quality runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Checkout Repository uses: actions/checkout@v2 with: fetch-depth: 0 - name: Access to private repo uses: webfactory/ssh-agent@v0.5.4 with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Cache Library uses: actions/cache@v2 with: path: Library key: Library - name: Run EditMode and PlayMode Tests id: tests uses: game-ci/unity-test-runner@v2 env: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: sshAgent: ${{ env.SSH_AUTH_SOCK }} - uses: actions/upload-artifact@v2 if: always() with: name: Test results for ${{ matrix.testMode }} path: ${{ steps.tests.outputs.artifactsPath }} ```
Error message ``` ########################### # Play Mode Results # ########################### Changing to "/github/workspace/_activate-license" directory. /github/workspace/_activate-license /github/workspace Unity Editor version: 2021.2.6f1 (8c4e826ba445) Branch: 2021.2/staging Build type: Release Batch mode: YES System name: Linux Distro version: #27~20.04.1-Ubuntu SMP Fri Jan 7 15:02:06 UTC 2022 Kernel version: 5.11.0-1025-azure Architecture: x86_64 Available memory: 6951 MB [Licensing::Module] Channel doesn't exist: "LicenseClient-root" [Licensing::Module] Successfully launched the LicensingClient (PId: 2362) [SignatureVerifier] Application signature verification not supported on this platform. [LicensingClient] Handshaking with LicensingClient (version: 1.9.0+249add7) [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-root" (connect: 0.45s, validation: 0.09s, handshake: 0.00s) [Licensing::Module] Connected to LicensingClient (PId: 2362, launch time: 0.00, total connection time: 0.54s) Entitlement-based licensing initiated [Licensing::Module] Error: Access token is unavailable [Licensing::Module] Error: Failed to return entitlement license ```
davidmfinol commented 2 years ago

The githubToken option is intended to help with displaying the test results in the GitHub UI. However, I see you are instead using the sshAgent option in your workflow, which is intended to allow using private repos in your dependencies. What is your actual intention?

davidmfinol commented 2 years ago

Closing due to lack of information.