1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【GitHub】GitHub Actionsのsecretsを設定する方法

Last updated at Posted at 2025-05-04

設定方法

  1. リポジトリの「Settings」をクリック
  2. 「Secrets and variables > Actions」をクリック
  3. 「New repository secret」をクリック

4B143EF9-D87B-4243-B34C-BA15C3812F2B.png

  1. secretの名称を入力
  2. secretの値を入力
  3. 「Add secret」をクリック

D992063C-30C6-4D1B-89B6-0EAA9B38634C.png

secretsを使用する

設定したsecretsを使用するには${{ secrets.シークレット名 }}のようにします。

steps:
  - name: Hello world action
    with: # Set the secret as an input
      sample_secret: ${{ secrets.SAMPLE_SECRET }}

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?