🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Committed in the workflow YAML
  2. B.Printed with echo in a step
  3. C.Stored as an encrypted secret and referenced as secrets.DEPLOY_KEY
  4. 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 →