metalstormbass / github-container-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-container-list

This script will crawl a Github Account or Organization and extract all of the base image names.

Disclaimer

Script will probably hit the Github rate limit

Usage

This script requires you to set GITHUB_TOKEN environment variable.

It accepts four arguments:

go run main.go <ORG_NAME> <BRANCH_NAME> <RECURSION_TRUE_OR_FALSE> <ITERATION_NUMBER>

If you have Dockerfiles in nested folders, set the recursion argument to '''true'''. Keep in mind that this will increase the API calls and hit the rate limit sooner.

If you want to set the iteration, you must also define the recursion setting.

Suggested Usage:

Basic:

go run main.go metalstormbass main  > out.txt
cat out.txt | sort | uniq

With Recursion:

go run main.go metalstormbass main true  > out.txt
cat out.txt | sort | uniq

Continuiing after hitting rate limit:

go run main.go metalstormbass main true 160 >> out.txt
cat out.txt | sort | uniq

About


Languages

Language:Go 100.0%