← Quiz: CI/CD with GitHub Actions: all 10 questions
Quiz: CI/CD with GitHub Actions · Question 5 of 10
How should a deploy key be provided to a GitHub Actions workflow?
How should a deploy key be provided to a GitHub Actions workflow?
- A.Committed in the workflow YAML
- B.Printed with echo in a step
- C.Stored as an encrypted secret and referenced as secrets.DEPLOY_KEY
- D.Put in the README
Answer & explanation
Correct answer: Stored as an encrypted secret and referenced as secrets.DEPLOY_KEY
Repository/environment secrets are encrypted and masked in logs.
Can you get the rest right without peeking?
Take the timed Quiz: CI/CD with GitHub Actions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →