次のコマンドで、tj-actionsのリポジトリの一覧を取得できる。
$ gh repo list tj-actions --json "name,owner"
[
{
"name": "glob",
"owner": {
"id": "MDEyOk9yZ2FuaXphdGlvbjY3MTE2Nzg3",
"login": "tj-actions"
}
},
${owner.login}/${name}
の形式で表示する。
$ gh repo list tj-actions --json "owner,name" --jq '.[] | "\(.owner.login)/\(.name)"'
このリポジトリをまとめてcloneする。
$ gh repo list tj-actions --json "owner,name" --jq '.[] | "\(.owner.login)/\(.name)"' | xargs -n1 gh repo clone
これで現在のディレクトリにtj-actionsのリポジトリがcloneされる。
現在のディレクトリ直下にあるディレクトリで、コミット内容に git grep <regexp> $(git rev-list --all)
で問題ありそうな変更があるか確認する。
サンプルケース:
git grep "exec.getExecOutput('bash'" $(git rev-list --all)
git grep "aWYgW1sgIiRPU1RZUEUi" $(git rev-list --all)
などをそれぞれのリポジトリで検索する
for d in $(ls -d */); do
echo "tj-actions/$d"
(cd "$d" && git grep "exec.getExecOutput('bash'" $(git rev-list --all))
(cd "$d" && git grep "aWYgW1sgIiRPU1RZUEUi" $(git rev-list --all))
done
Result:
tj-actions/auto-doc/
tj-actions/aws-cdk/
tj-actions/aws-lightsail-push-container/
tj-actions/bandit/
tj-actions/bashcov/
tj-actions/cargo-bump/
tj-actions/changed-files/
Binary file 0e58ed8671d6b60d0890c21b07f8835ace038e67:dist/index.js matches
Binary file 0e58ed8671d6b60d0890c21b07f8835ace038e67:dist/index.js matches
tj-actions/check-manifest/
tj-actions/cookiecutter-action/
tj-actions/coverage-badge-go/
tj-actions/coverage-badge-js/
tj-actions/coverage-badge-py/
tj-actions/db-docs/
tj-actions/depcheck/
tj-actions/docker-action/
tj-actions/docker-cp/
tj-actions/docker-run/
tj-actions/eslint-changed-files/
tj-actions/github-changelog-generator/
tj-actions/glob/
tj-actions/json2file/
tj-actions/pg-dump/
tj-actions/pg-restore/
tj-actions/puppeteer/
tj-actions/release-tagger/
tj-actions/remark/
tj-actions/schemaspy/
tj-actions/semver-diff/
tj-actions/sync-release-version/
tj-actions/verify-changed-files/