【发布时间】:2023-01-11 08:42:23
【问题描述】:
我有很多秘密,存储在我的 repo 的 Settings/Secrets/Action 中。
我的应用程序使用了各种秘密,但命令中没有使用它们。
name: BuildCheck
on:
push:
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm ci
- run: npm run build
我是否需要在上面的配置文件中添加 env 顶级映射下的所有变量,以便操作使用它们?
这似乎打破了我使用 Doppler 管理机密的自动化流程。
有没有办法在不明确指定的情况下注入所有秘密? (我确实看过文档,但没有找到这是否可能)
来自 Vercel,这样做感觉有点退步。
【问题讨论】:
标签: github-actions