API v3 doc to understand the fields in .github/config/branch-protection/
: https://docs.github.com/en/rest/branches/branch-protection#update-branch-protection--parameters
Example script using it to temporarily disable branch protection rules for a single git push
:
#!/bin/bash
set -o errexit
# Prerequisite: gh repo-config init must be called to initialized JSON config files
config_dir=.github/config/branch-protection
# Backup current configuration:
cp $config_dir/main.json .
# Disable branch protection rules:
yq -iP -o json .required_pull_request_reviews=null $config_dir/main.json
yq -iP -o json .required_status_checks.checks=[] $config_dir/main.json
gh repo-config apply
# Push commit(s):
git push
# Restore initial configuration
mv main.json $config_dir/
gh repo-config apply
⚠️ Currently gh repo-config init
does NOT reflect your current repo settings when initializing files in .github/config/branch-protection/
, cf. issue 159
⚠️ Calling gh repo-config apply
will NOT preserve your current repo settings
I have compiled a list of tools you might find helpful for testing structured data markup and rich snippet display (microdata, RDFa, RDFa Lite and JSON-LD)
We had an issue with a SpringBoot web app where we had the following error message when querying /manage/beans
Could not write JSON Attempted to serialize java.lang.Class Forgot to register a type adapter?
This was due to org.springframework.boot.actuate.beans.BeansEndpoint.BeanDescriptor having a java.lang.Class<?>
attribute.
We fixed it by configuring our Gson bean this way :
@Bean
public static Gson gson() {
return new GsonBuilder()
...
.addSerializationExclusionStrategy(new ExclusionStrategy() {
@Override
public boolean shouldSkipField(FieldAttributes field) {
return field.getDeclaredType().getTypeName().equals("java.lang.Class<?>");
}
@Override
public boolean shouldSkipClass(Class<?> clazz) {
return false;
}
})
.create();
}
- Input injection
- Parsing XML
- Assert statements
- Timing attacks
- A polluted site-packages or import path
- Temporary files
- Using yaml.load
- Pickles
- Using the system Python runtime and not patching it
- Not patching your dependencies
FROM: http://taint.org
IPTC = International Press Telecommunications Council, defines the open standards of the News Media, founded in 1965 and based in London
Alt (XML) : NewsML-G2 https://iptc.org/standards/newsml-g2/
editor of encrypted files that supports YAML, JSON and BINARY formats and encrypts with AWS KMS and PGP