wvt
wvt

Reputation: 31

Visual Studio 22 was unable to set secret '(Azure App Service name)_FFFF' because you may not have collaborator access to the repository '_git/(name)'

In short, taking action

Visual Studio 2022 > Publish > Deployment type > CI/CD using GitHub Actions workflows (generates yml file)

Throws error

Visual Studio 22 was unable to set secret '(Azure App Service name)_FFFF' because you may not have collaborator access to the repository '_git/(name)'

More detailed steps

  1. Install Visual Studio 2022
  2. Sign in with
  3. Scaffold project
  4. Adapt scaffolded code to requirements
  5. Publish

Publish steps

  1. Right click publish
  2. Add a publish profile
  3. Target > Azure
  4. Azure App Service (Windows)
  5. Set subscription name VS professional, view correct resource group, able to select correct App Service instance
  6. Select deploy as .zip package to true
  7. Choose CI/CD using GitHub Actions workflows (generates yml file)

Microsoft Visual Studio Visual Studio was unable to set secret because you may not have collaborator access to the repository

Upvotes: 2

Views: 1460

Answers (1)

user4889154
user4889154

Reputation:

I was able to fix this by recreating the repo. BE VERY CAREFUL WHILE DOING THIS.

  1. Delete the repo from github (optional step and dangerous)
  2. In the root directory of your local repo, show hidden files and delete the .git folder.
  3. Restart visual studio.
  4. Recreate the repo from visual studio.

This is probably NOT the best answer, it worked for me. But there was some bug in my git repo not allowing it see me as the owner of the repo.

Upvotes: -1

Related Questions