Browse Source

gpg-encrypt credentials.json instead

master
Yorick van Pelt 2 years ago
parent
commit
4c4d03adef
Signed by: yorick GPG Key ID: A36E70F9DC014A15
8 changed files with 3 additions and 10 deletions
  1. +0
    -3
      .git-crypt/.gitattributes
  2. BIN
      .git-crypt/keys/default/0/609B26697F7D6E3D3A25BECD594E97B135DCDF46.gpg
  3. +0
    -2
      .git-crypt/keys/default/0/6EFD1053ADB6ABF50DF64792A36E70F9DC014A15.gpg
  4. +0
    -1
      .gitattributes
  5. +1
    -2
      README.md
  6. BIN
      credentials.json
  7. BIN
      credentials.json.gpg
  8. +2
    -2
      index.js

+ 0
- 3
.git-crypt/.gitattributes View File

@ -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

BIN
.git-crypt/keys/default/0/609B26697F7D6E3D3A25BECD594E97B135DCDF46.gpg View File


+ 0
- 2
.git-crypt/keys/default/0/6EFD1053ADB6ABF50DF64792A36E70F9DC014A15.gpg View File

@ -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°{Ü{�C›lÜÄ¿üͽ1TPº}ù7ÝYLiAbX•çN]\iL� ¢ý’Û]óþ::@ÇÃYˆ’¶^¡jC5toñÆðG>¼¶î]t¼*9wþˆáÕÙK.•Ê™Ùa¨Áö0›�¯

+ 0
- 1
.gitattributes View File

@ -1 +0,0 @@
credentials.json filter=git-crypt diff=git-crypt

+ 1
- 2
README.md View File

@ -1,4 +1,3 @@
```bash
git crypt unlock
node index.js auto <hours>
bin/skl-auto-payslip.js auto <hours>
```

BIN
credentials.json View File


BIN
credentials.json.gpg View File


+ 2
- 2
index.js View File

@ -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…
Cancel
Save