Skip to content

Commit 2a61097

Browse files
committed
CI: docker build
1 parent b948dba commit 2a61097

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Docker Build & Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Build Docker image
20+
uses: docker/build-push-action@v5
21+
with:
22+
context: .
23+
load: true
24+
tags: github-dorks:test
25+
cache-from: type=gha
26+
cache-to: type=gha,mode=max
27+
28+
- name: Test Docker image
29+
run: |
30+
# Test the version flag
31+
docker run github-dorks:test -v
32+
33+
# Basic test with a public repo (no auth needed)
34+
docker run github-dorks:test -r techgaun/github-dorks -d github-dorks-test.txt
35+
36+
- name: Verify image size
37+
run: docker image ls github-dorks:test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Docker Build & Test](https://github.com/techgaun/github-dorks/actions/workflows/docker-build.yml/badge.svg)](https://github.com/techgaun/github-dorks/actions/workflows/docker-build.yml)
2+
13
# Github Dorks
24

35
[Github Search](https://github.com/search) is a quite powerful and useful feature that can be used to search for sensitive data on repositories. Collection of Github dorks can reveal sensitive personal and/or organizational information such as private keys, credentials, authentication tokens, etc. This list is supposed to be useful for assessing security and performing pen-testing of systems.

0 commit comments

Comments
 (0)