Skip to content

Commit 36b3806

Browse files
committed
fail fast when no campfire token is given
1 parent 450237d commit 36b3806

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/campfire.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
service :campfire do |data, payload|
2+
# fail fast with no token
3+
throw(:halt, 400) if data['token'].to_s == ''
4+
25
repository = payload['repository']['name']
36
owner = payload['repository']['owner']['name']
47
branch = payload['ref'].split('/').last

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy