简体   繁体   中英

Unable to store special characters in github secrets

I am trying to store my password as GitHub secret. However, I am getting 401 unauthorized error. It appears to me that the GitHub secrets doesn't work if the value contains a special character. The value that I am trying to store has '$' in it? How could I possibly store the value Ri$hab in Github secrets in order to make it work?

I tried on a project of mine, and I don't have this problem, the secret is created sucessfully...

A 401 Error could mean you don't have the rights on this repository.

Also, there are rules on the name of your secret

Secret names cannot include any spaces or start with the GITHUB_ prefix.

在此处输入图像描述

You need to use escape character before the special character like: Ri\$hab

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM