Control: Code of conduct should be added in each public repository
Description
Adding a code of conduct defines standards for how your community engages in an inclusive environment.
Usage
Run the control in your terminal:
powerpipe control run github_sherlock.control.public_repo_code_of_conduct_added
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run github_sherlock.control.public_repo_code_of_conduct_added --share
Steampipe Tables
SQL
select url as resource, case when code_of_conduct is not null then 'ok' else 'alarm' end as status, name_with_owner || ' code of conduct is ' || case when (code_of_conduct is not null) then (code_of_conduct ->> 'name') else 'not added' end || '.' as reason, name_with_ownerfrom github_my_repositorywhere visibility = 'PUBLIC' and is_fork = false