Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitHub操作是否替换nuget.config中的${{secrets.NuGetAPIKey}}?_Github_Github Actions_Github Package Registry - Fatal编程技术网

GitHub操作是否替换nuget.config中的${{secrets.NuGetAPIKey}}?

GitHub操作是否替换nuget.config中的${{secrets.NuGetAPIKey}}?,github,github-actions,github-package-registry,Github,Github Actions,Github Package Registry,Github安全性不允许在nuget.config的ClearTextPassword属性中存储私有访问令牌。基本上,他们禁用PAT。我的问题是,${{secrets.NuGetAPIKey}}的标记替换是否也会处理nuget.config 请注意,如果nuget.config中没有用户名和密码,我将无法将我的包发布到GitHub包(GitHub中存在跟踪错误)。GitHub仅替换目录.GitHub/workflows中的机密。当我需要使用一些密钥在服务器上部署应用程序时,我也有类似的需求。最好

Github安全性不允许在nuget.config的ClearTextPassword属性中存储私有访问令牌。基本上,他们禁用PAT。我的问题是,${{secrets.NuGetAPIKey}}的标记替换是否也会处理nuget.config


请注意,如果nuget.config中没有用户名和密码,我将无法将我的包发布到GitHub包(GitHub中存在跟踪错误)。

GitHub仅替换目录
.GitHub/workflows
中的机密。当我需要使用一些密钥在服务器上部署应用程序时,我也有类似的需求。最好在
yaml
中使用带有
env
标记的环境变量。请参阅本手册的最后一节“部署”