設定方法
- リポジトリの「Settings」をクリック
- 「Secrets and variables > Actions」をクリック
- 「New repository secret」をクリック
- secretの名称を入力
- secretの値を入力
- 「Add secret」をクリック
secretsを使用する
設定したsecretsを使用するには${{ secrets.シークレット名 }}
のようにします。
steps:
- name: Hello world action
with: # Set the secret as an input
sample_secret: ${{ secrets.SAMPLE_SECRET }}
参考