Merge branch 'master' of github.com:sobolevn/git-secret

This commit is contained in:
Josh Rabinowitz 2020-09-20 12:28:26 -04:00
commit ee6e917f37
6 changed files with 107 additions and 78 deletions

View File

@ -14,7 +14,7 @@
- name: Get ShellCheck
get_url:
url: https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
url: https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz
dest: /tmp/shellcheck.tar.xz
- name: Install ShellCheck

19
.github/workflows/misspell.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: misspell
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: sobolevn/misspell-fixer-action@0.1.0
- uses: peter-evans/create-pull-request@v2.4.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Fixes by misspell-fixer'
title: 'Typos fix by misspell-fixer'

View File

@ -7,12 +7,14 @@
- In 'tell', warn about disabled, revoked, expired, or invalid keys (#552, #508, #317, #290, #283, #238)
- Error if 'tell' is used on an email address with multiple keys (#552)
- Don't let 'reveal' clobber secret files (#579)
- Updated test key fixture that had expired (#607)
### Misc
- Improve docs about using gpg with git-secret (#577)
- Reflect changes in ruby bundler during build process
- Upgrade build process to ansible 2.9
- Use shellcheck 0.7.1 with CI, not 'latest' (#609)
## Version 0.3.2

View File

@ -1,29 +1,35 @@
== public/private key pairs for test keys
* user1 and user2 are normal gpg key sets for user1@gitsecret.io and
user2@gitsecret.io. They have the passphrases 'user1pass' and 'user2pass',
respectively.
user1 is not currently used.
* git-secret test keys are named user1@gitsecret.io through
user5@gitsecret.io
* user3 was created by `gpg --quick-generate user3@gitsecret.io`
and therefore has only an email associated with it (no username).
It has the passphrase 'user3pass' as the tests expect.
This user was created to fix https://github.com/sobolevn/git-secret/issues/227 ,
"keys with no info but the email address not recognized by whoknows"
* All test keysets have the passphrases 'userNpass' I.E., 'user3pass'
for user3@gitsecret.io.
* user4 was created with `gpg --gen-key`, using the name 'user4'
and the email address user4@gitsecret.io. As the tests expect,
it has the passphrase 'user4pass'.
It is also set to expire on 2018-09-23. To make keys expire, I used the
`gpg --edit-key user@email` command's `expiry` function.
The public and private key for user4 were exported with
* The public/private key sets were exported with (for example)
`gpg --export --armor user4 > tests/fixtures/gpg/user4/public.key`
and
`gpg --export-secret-keys --armor user4 > tests/fixtures/gpg/user4/private.key`
* user5 was created for issue #527 using `gpg --full-generate-key`.
with name 'user5', no email address, the comment 'comment comment', and
the passphrase 'user5pass'. Keys were exported as above.
* user1 and user2 are normal gpg key sets for user1@gitsecret.io and
user2@gitsecret.io, and have the passphrases 'user1pass' and 'user2pass'.
* user3 was created by `gpg --quick-generate user3@gitsecret.io`
and therefore has only an email associated with it (no username).
This user was created to fix
https://github.com/sobolevn/git-secret/issues/227,
"keys with email address but no name not recognized by whoknows".
The passphrase is 'user3pass'.
* user4 was created with `gpg --gen-key`, using the name 'user4'
and the email address user4@gitsecret.io, and is also set to
expire on 2018-09-23.
To set the key's expiry, I used the
`gpg --edit-key user@email` command's `expiry` function.
The passphrase is 'user4pass'.
* user5 was created for issue #527, where keys were being rejected if they
didn't have an email address, and had whitespace in their 'comment'.
using `gpg --full-generate-key` with name 'user5', no email address,
the comment 'comment comment', and the passphrase 'user5pass'.

View File

@ -1,4 +1,5 @@
-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
lQPGBFtLVc0BCACwGHyefi/z8xeH6KpLN2k9+PlHAPpwJaW+8siaWjbQenkbWX6/
cVBFBwLNVCY+UacKNKVPxYDgS9UkAGlqD1GRGISh9uvIKW/w4T2LBxDQBGlYsTdL
@ -20,40 +21,40 @@ UtPV5uDa1WznIt2gHP2NKTP54nEfLq4eLcwjvLcyjXn9aAZRmNMwbOBJ9Uf4x06S
xzBI5FUL+2aqHrEedCeyW4AsndVaKOWNfzqjY7Y8cDuqpQj3o6yWbGy8u1kGDPK+
v6gCe3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