简体   繁体   English

如何将机密连接到 GitHub 上的工作流操作中?

[英]How to concatenate secrets into workflow action on GitHub?

I would like to concatenate multiple secrets into my workflow action on GitHub.我想将多个机密连接到我对 GitHub 的工作流操作中。

The example that comes to mind would be to create a full path from folder to filename.想到的示例是创建从文件夹到文件名的完整路径。

To concatenate secrets into a workflow action on GitHub:要将机密连接到 GitHub 上的工作流操作中:

${{ format('{0}/{1}.{2}', secrets.FOLDER, secrets.FILENAME, secrets.EXT) }}

Sources: https://docs.github.com/en/actions/learn-github-actions/expressions#format资料来源: https://docs.github.com/en/actions/learn-github-actions/expressions#format

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用秘密和节点模块设置共享 github 操作工作流 - How to setup shared github action workflow with secrets and node modules 如何在 GitHub Action 上参数化机密 - How to parameterize secrets on GitHub Action 如何在 GitHub CI 工作流中使用 dependabot secrets - How to use dependabot secrets in GitHub CI workflow 秘密不会从 github 动作秘密传递到 github 动作中的可重用工作流 - Secrets doesnt pass from github action secrets to reusable workflow in github actions GitHub 操作:如何屏蔽 workflow_dispatch 输入,如秘密? - GitHub Actions: How to mask workflow_dispatch inputs, like secrets? 如何在github操作中将github机密内容保存在文件中 - How to save github secrets content in a file in github action 如何在 github 操作中获取主机存储库的 GitHub 机密作为输入? - How to get GitHub secrets of host repository as input in github action? Django 设置和 GitHub 操作秘密 - Django Settings and GitHub Action Secrets 在 Github 工作流中的作业之间传递秘密作为 output - Passing secrets as output between jobs in a Github workflow 如何将机密作为环境变量传递到 Docker Github Action 中? - How to pass secrets as environment variables into a Docker Github Action?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM