🔥 3-day streak
GitHub Actions (GH-200)102 / 142
Question 102 of 142
A workflow calls an internal API using a token stored in the repository secret API_TOKEN. A developer wants to derive a shortened 'client key' from the token at runtime (the first 12 characters) and print it to the log for debugging, while ensuring GitHub still masks the full secret. Which approach correctly prevents the full secret from leaking in logs?
Reviewed for accuracy · Report an issueNext question