gpg-encrypt credentials.json instead
parent
67bdb9f84c
commit
4c4d03adef
|
@ -1,3 +0,0 @@
|
|||
# Do not edit this file. To specify the files to encrypt, create your own
|
||||
# .gitattributes file in the directory where your files are.
|
||||
* !filter !diff
|
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
„^ž¥ƒ¹—œ_@SÞÜÊÌØ—&m*„K‰-NZâݺ÷OŠ °ÿâR0ý.ÞMX_Q£ëqŽÜ®tÎá\îû;j`¢ºD¦]?ÿ%
|
||||
·\t„õ9¿ÃÜfÚÏ’ÒÀï6=œU=œzµÌw¤ì7C³¨Ò`nD*Òu«§y•ÙÃQ·³ »ä[éÂ}»T¨†dHVÉ`CMÄɶO
Í`©è]3 ¸
aÏN‡_ïNLüx¾LA°{Ü{<7B>C›lÜÄ¿üͽ1TPº}ù7ÝYLiAbX•çN]\iL<69> ¢ý’Û]óþ::@ÇÃYˆ’¶^¡jC5toñÆðG>¼¶î]t¼*9wþˆáÕÙK.•Ê™Ùa¨Áö0›<30>¯
|
|
@ -1 +0,0 @@
|
|||
credentials.json filter=git-crypt diff=git-crypt
|
|
@ -1,4 +1,3 @@
|
|||
```bash
|
||||
git crypt unlock
|
||||
node index.js auto <hours>
|
||||
bin/skl-auto-payslip.js auto <hours>
|
||||
```
|
||||
|
|
BIN
credentials.json
BIN
credentials.json
Binary file not shown.
Binary file not shown.
4
index.js
4
index.js
|
@ -27,8 +27,8 @@ const config = {
|
|||
}
|
||||
|
||||
async function authAll() {
|
||||
const content = await readFile('credentials.json')
|
||||
return authorize(JSON.parse(content))
|
||||
const {stdout, stderr} = await exec(`gpg --decrypt < ${__dirname}/credentials.json.gpg`)
|
||||
return authorize(JSON.parse(stdout))
|
||||
}
|
||||
|
||||
async function authorize(credentials) {
|
||||
|
|
Loading…
Reference in New Issue