Câu 3: GitHub Actions
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
Nội dung câu hỏi
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.
- B. Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.
- C. Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}. — đáp án hiện tại
- D. Use a workflow command to expose the encrypted secret via a step's output parameter and then use the step output in the job's if: conditional.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.