FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CodeIgniter4/.github/scripts/secure-git-push at develop · codeigniter4/CodeIgniter4 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
codeigniter4
/
CodeIgniter4
Public
Notifications
You must be signed in to change notification settings
Fork
2k
Star
6k
Code
Issues
26
Pull requests
7
Actions
Security and quality
17
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
CodeIgniter4
/
.github
/
scripts
/
secure-git-push
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (16 loc) · 521 Bytes
Breadcrumbs
CodeIgniter4
/
.github
/
scripts
/
secure-git-push
Copy path
File metadata and controls
executable file
·
22 lines (16 loc) · 521 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!
/usr/bin/env bash
set
-euo pipefail
if
[[
$#
-ne
2 ]]
;
then
echo
"
Usage: secure-git-push <remote-url> <refspec>
"
>&2
exit
1
fi
if
[[
-z
"
${PUSH_TOKEN
:-
}
"
]]
;
then
echo
"
PUSH_TOKEN is required
"
>&2
exit
1
fi
REMOTE_URL=
"
$1
"
REFSPEC=
"
$2
"
AUTH_HEADER=
"
$(
printf
'
x-access-token:%s
'
"
${PUSH_TOKEN}
"
|
base64
|
tr -d
'
\n
'
)
"
echo
"
::add-mask::
${AUTH_HEADER}
"
git -c http.https://github.com/.extraheader=
"
AUTHORIZATION: basic
${AUTH_HEADER}
"
push
"
${REMOTE_URL}
"
"
${REFSPEC}
"
unset
AUTH_HEADER PUSH_TOKEN
Back
|
FazBrowse Home
|
New Git URL