-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci/contributing: verify donation address/qr's are signed #2394
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for barolo-time-757cf9 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
4565b88
to
0b5731e
Compare
LGTM. I have no preference over who signs the file, as long as its signed and correct. if using your key, perhaps we should use your pgp key from the gitian.sigs repo(?). |
My plan is to either:
i have sanity checked that the workflow fails correctly:
after first approval(s) i can proceed with 2 then 1 or 1* |
run: | | ||
yaml="_data/contributing.yml" | ||
get_yaml_value() { | ||
awk -v key="$1:" '$1 == key {print $2}' "$yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with awk but looks like easy to break things when the content of the site changed a bit. Is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awk is a text processor and $1 processes the first argument $2 the second etc.
an example is
echo uhh nah | awk '{print $2 $1}'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, we're only looking at "contributing.yml" . this is a hack to access yaml variables. astro has no problem importing yml files / using their variables so the same signed file will be usable by both.
Thank you for the reviews. i will ask bF to sign the file for us |
with this PR i have moved the general fund donation addresses/qr checksums into a _data file that can be signed. this is confirmed in the workflow
thoughts? if this is useful we can ask bF to verify/sign the file.
to sign: (whilst in _data)
gpg --output contributing.yml.asc --armor --detach-sig contributing.yml
overwrite existing file ✔️