Merge branch 'master' of ssh://storage.hided.net:2525/devsam/image

This commit is contained in:
2018-06-14 23:06:44 +09:00
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace sammo\img_service;
include(__DIR__.'/gogs_key.php');
$raw_payload = $_POST['payload']??'false';
$valid_hmac = $_SERVER['HTTP_X_GOGS_SIGNATURE']??'';
$req_hmac = hash_hmac('sha256', $raw_payload, Key::KEY);
if($valid_hmac != $req_hmac){
die('');
}
exec("git pull -q 2>&1", $output);