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

Cannot prompt because user interactivity has been disabled. #15

Open
AzAdmin-GuardianAngel360 opened this issue Apr 29, 2022 · 0 comments

Comments

@AzAdmin-GuardianAngel360

So when I operate according to instructions I noticed 2 problems

  1. It rose to green making me think it passed (It did not)
  2. I have my script in with my PAT From Github as directed in docs. its main problem is "Cannot prompt because user interactivity has been disabled."

What am I doing wrong?

image

Starter pipeline

Start with a minimal pipeline that you can customize to build and deploy your code.

Add steps that build, run tests, deploy, and more:

https://aka.ms/yaml

pool:
vmImage: windows-latest

steps:

  • script: echo Hello, world!
    displayName: 'Run a one-line script'

  • script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
    displayName: 'Run a multi-line script'

  • task: gitsync@1
    inputs:
    GitRepoUrl: 'https://$(ghp_<<PAT_OMMITTED>>)@github.com/AzAdmin-GuardianAngel360/GA360-APP.git'

==== Output ====
2022-04-29T19:05:24.7248037Z ##[section]Starting: gitsync
2022-04-29T19:05:24.8717434Z ==============================================================================
2022-04-29T19:05:24.8718112Z Task : Publish Git Repo
2022-04-29T19:05:24.8718358Z Description : Lets you Sync your Git repository with another
2022-04-29T19:05:24.8718563Z Version : 1.3.48
2022-04-29T19:05:24.8718726Z Author : Martin Hinshelwood
2022-04-29T19:05:24.8719572Z Help : v1.3.48 More Information
2022-04-29T19:05:24.8720023Z ==============================================================================
2022-04-29T19:05:27.0945748Z Switched to a new branch 'azure-pipelines-pipelines-push-to-git'
2022-04-29T19:05:27.0946684Z Branch 'azure-pipelines-pipelines-push-to-git' set up to track remote branch 'azure-pipelines-pipelines-push-to-git' from 'origin'.
2022-04-29T19:05:29.9739290Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:30.3508927Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:30.3793262Z fatal: could not read Password for 'https://$(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)@github.com': terminal prompts disabled
2022-04-29T19:05:31.8258942Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:32.1624600Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:32.1775187Z fatal: could not read Password for 'https://$(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)@github.com': terminal prompts disabled
2022-04-29T19:05:33.5982532Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:33.9725637Z fatal: Cannot prompt because user interactivity has been disabled.
2022-04-29T19:05:33.9856390Z fatal: could not read Password for 'https://$(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)@github.com': terminal prompts disabled
2022-04-29T19:05:34.0177365Z ##[section]Finishing: gitsync

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