Skip to content
Discussion options

You must be logged in to vote

Update: it's actually a logic bug in my pipeline regarding to the access token for retrieving the Git submodules.

I'd like to share more details here as a lesson learn for my own.

My repo has a git submodule to contain another repo called c1. And the copilot-setup-steps.yml is as follows

jobs:
  copilot-setup-steps:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Acquire the access token for submodule repositories
        id: repo_auth
        uses: actions/create-github-app-token@v2
        with:
          app-id: [id]
          private-key: [secret]
          owner: ${{ github.repository_owner }}
          repositories: |
            c1
        …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by duylam-katalon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Copilot Cloud Agent Implement a task or issue, run in the background with GitHub Actions, and more
1 participant