Export to CSV for auditors or import into your GRC platform.
Full tutorial: https://www.cloudquery.io/blog/find-commits-by-departed-employees-with-sql
Export to CSV for auditors or import into your GRC platform.
Full tutorial: https://www.cloudquery.io/blog/find-commits-by-departed-employees-with-sql
→ DEPROVISIONED (former employee)
→ SUSPENDED (on leave)
→ NOT_FOUND (never in IdP - contractor? personal email?)
Prioritize by recency and commit count.
→ DEPROVISIONED (former employee)
→ SUSPENDED (on leave)
→ NOT_FOUND (never in IdP - contractor? personal email?)
Prioritize by recency and commit count.
SELECT gc.*, u.status
FROM git_commits gc
LEFT JOIN okta_users u
ON gc.author_email = u.email
WHERE u.status != 'ACTIVE'
SELECT gc.*, u.status
FROM git_commits gc
LEFT JOIN okta_users u
ON gc.author_email = u.email
WHERE u.status != 'ACTIVE'
→ Export HR data
→ Clone repos
→ Run git log
→ Correlate email addresses
→ Compile spreadsheets
Repeat quarterly for SOC 2.
→ Export HR data
→ Clone repos
→ Run git log
→ Correlate email addresses
→ Compile spreadsheets
Repeat quarterly for SOC 2.
Full tutorial: https://www.cloudquery.io/blog/find-repos-missing-license-files-with-sql
Full tutorial: https://www.cloudquery.io/blog/find-repos-missing-license-files-with-sql
→ LICENSE.txt
→ LICENSE.md
→ LICENCE (British spelling)
→ LICENSE-MIT
Check the `name` column to see exact filenames.
→ LICENSE.txt
→ LICENSE.md
→ LICENCE (British spelling)
→ LICENSE-MIT
Check the `name` column to see exact filenames.
Query for repos with GPL licenses owned by your org. Filter by team, by repo pattern, by creation date. SQL makes compliance checks composable.
Query for repos with GPL licenses owned by your org. Filter by team, by repo pattern, by creation date. SQL makes compliance checks composable.
Parse LICENSE content to classify types:
→ MIT
→ Apache-2.0
→ GPL
→ BSD
One query gives you license inventory across all repos.
Parse LICENSE content to classify types:
→ MIT
→ Apache-2.0
→ GPL
→ BSD
One query gives you license inventory across all repos.
SELECT gr.full_name FROM git_repositories gr
LEFT JOIN git_files gf ON gf.name = 'LICENSE'
WHERE gf.repository_url IS NULL
SELECT gr.full_name FROM git_repositories gr
LEFT JOIN git_files gf ON gf.name = 'LICENSE'
WHERE gf.repository_url IS NULL
Full tutorial with SQL examples:
https://www.cloudquery.io/blog/query-dockerfiles-for-eol-base-images-with-sql
Full tutorial with SQL examples:
https://www.cloudquery.io/blog/query-dockerfiles-for-eol-base-images-with-sql
SELECT ei.*, gr.owner
FROM eol_images ei
JOIN git_repositories gr ON ...
SELECT ei.*, gr.owner
FROM eol_images ei
JOIN git_repositories gr ON ...
→ Python 2.7
→ Ubuntu 18.04
→ Node 16
→ Any base image you need to track
Combine multiple versions in one query.
→ Python 2.7
→ Ubuntu 18.04
→ Node 16
→ Any base image you need to track
Combine multiple versions in one query.
Works for multi-stage builds too - each FROM statement is captured.
Works for multi-stage builds too - each FROM statement is captured.
SELECT repository_url, path, image
FROM dockerfiles
WHERE image LIKE 'node:18%'
SELECT repository_url, path, image
FROM dockerfiles
WHERE image LIKE 'node:18%'
→ Clone hundreds of repos
→ Find all Dockerfiles
→ Parse FROM statements
→ Compile results into spreadsheet
→ Email teams
→ Track remediation
Repeat when the next runtime goes EOL.
→ Clone hundreds of repos
→ Find all Dockerfiles
→ Parse FROM statements
→ Compile results into spreadsheet
→ Email teams
→ Track remediation
Repeat when the next runtime goes EOL.
https://www.cloudquery.io/blog/introducing-the-git-source-plugin
https://www.cloudquery.io/blog/introducing-the-git-source-plugin
Configure patterns like **/Dockerfile*, **/CODEOWNERS, **/package.json. Only sync what you need.
Configure patterns like **/Dockerfile*, **/CODEOWNERS, **/package.json. Only sync what you need.