mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #843] Issue: checkout a different enterprise repo action fails with token error in workflow #511
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mssanjay on GitHub (Oct 18, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/843
System information
act: ubuntu-latestactversion: 0.2.24Expected behaviour
Checkout action should checkout a private repo
Actual behaviour
[ci/build] 🐳 docker exec cmd=[node /var/run/act/actions/actions-checkout@v2/dist/index.js] user=
[ci/build] Exec command '[node /var/run/act/actions/actions-checkout@v2/dist/index.js]'
[ci/build] ❓ ::save-state name=isPost::true
[ci/build] 💬 ::debug::GITHUB_WORKSPACE = '/mnt/c/Users/smelina/dev/code2/apigateway_gitactions-testing'
[ci/build] 💬 ::debug::qualified repository = 'https://git.mycompany.com/my-org/my-repo'
[ci/build] ❗ ::error::Invalid repository 'https://git.mycompany.com/my-org/my-repo'. Expected format {owner}/{repo}.
time="2021-10-17T21:57:15-04:00" level=debug msg="exit with
FAILURE: 1"[ci/build] ❌ Failure - checkoutGatewayRepo
I have a second repo that I need to checkout and perform a merge. The checkout action fails to checkout this repo.
I am able to run this workflow in our github enterprise actions but not with ACT.
Workflow and/or repository
Steps to reproduce
actoutputLog
@mssanjay commented on GitHub (Oct 18, 2021):
Sorry. I figured out the issue. Git repo just needs OWNER/REPO and not complete URL. I was then able to use '-s' flag to pass the token. Closing the issue. Thanks
with:inputs #1477