thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

GitHub Secrets

Encrypted variables stored at the organization, repository, or environment level for use in GitHub Actions workflows.

Definition

Secrets are referenced as ${{ secrets.NAME }}, masked in logs, and not passed to workflows from forks. Environment secrets are only available to jobs targeting that environment, which can require approval. Non-sensitive values belong in configuration variables (vars).

Example

${{ secrets.DOCKERHUB_TOKEN }} is used in a docker/login-action step.

Exam tip

Secrets are not available to pull_request workflows triggered from forks by default.

Related terms