This is the failure mode that scares me most in a pipeline. A guard that exits 0 with no token looks like a pass in every dashboard. I fail closed on missing secrets in Terraform and CI the same way, so a missing value stops the deploy instead of letting it through.
A deploy guard that passes with no token
3 Comments
BashSnippets
•
@[manojkagitha] Same instinct. One CI wrinkle worth knowing: in GitHub Actions a secret that doesn't exist (typo in the name, or a PR from a fork) reaches the script as an empty string, not unset. set -u lets that through. : "${DEPLOY_TOKEN:?not set}" is the one that stops it, because :? fails on empty as well as unset.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
79Posts
44Comments
14Connections
Linux user who got tired of Googling the same bash commands every time I sat down at a terminal. Sta... Show moreLinux user who got tired of Googling the same bash commands every time I sat down at a terminal. Started writing them down. That turned into bashsnippets.xyz -->
a free and growing library of copy-paste bash scripts with plain-English explanations. No logins, no paywalls, just scripts that work. I post a new one every week on YouTube & TikTok @BashSnippets. Show less
a free and growing library of copy-paste bash scripts with plain-English explanations. No logins, no paywalls, just scripts that work. I post a new one every week on YouTube & TikTok @BashSnippets. Show less
More From BashSnippets
Related Jobs
- Security Guard (Laborer Renewables)Primoris · Full time · Vevay, IN
- Licensed Security Guard Full TimeAndy Frain · Full time · Warsaw, KY
- Forward Deployed Software Engineer, Internship - Warp SpeedPalantir · Internship · New York, NY
Commenters (This Week)
Mara Hollis
8 comments
eTobe
2 comments
Dilip Kumar
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!