Skip to content

Commit

Permalink
fix validation task error
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda authored and tekton-robot committed Sep 16, 2019
1 parent 6548430 commit bb65335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/validate-github-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
cat <<EOF | python
import hashlib, os, hmac, json
secret = bytes(os.environ.get('GithubSecret'), 'utf-8')
payload = bytes("$(inputs.params.EventBody)",'utf-8')
payload = bytes('$(inputs.params.EventBody)','utf-8')
h = json.loads(r'$(inputs.params.EventHeaders)')
signature = h["X-Hub-Signature"][0]
expected = hmac.new(secret, payload, hashlib.sha1).hexdigest()
Expand Down

0 comments on commit bb65335

Please sign in to comment.