Actions

Pull repo from another

steps

jobs

- name: checkout repo

uses. Actions/checkout@v2.

with

repository:<user>/<repo>
ref: ${{ vars.ENV }}
token: ${{ secrets.PAT_TOKEN }}

path. .

?Same user’s repos

secrets.GITHUB_TOKEN

Initialised by default.

2. PAT : personal access token

from github account > Developer settings (bottom left in the settings page)

> classic token > repo access.

Modern tokens were unable to access.

  1. Place PAT in github secret of the repo.

Use branch (created by PR) to test action

Actions UI lets user select branch.

Updated: 2026 Aug 19