Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 1a24053

Browse files
authored
ci: add github actions scripts and docker build checks (#40)
* ci: add github actions scripts and docker build checks * docker: remove deprecated apt-key step and install wget
1 parent ebace85 commit 1a24053

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
scripts:
9+
name: Scripts
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Validate shell script syntax
15+
shell: bash
16+
run: |
17+
set -euo pipefail
18+
shopt -s nullglob
19+
scripts=( *.sh )
20+
if [ ${#scripts[@]} -eq 0 ]; then
21+
echo "No shell scripts found"
22+
exit 0
23+
fi
24+
25+
for script in "${scripts[@]}"; do
26+
echo "Checking ${script}"
27+
bash -n "${script}"
28+
done
29+
30+
docker-build:
31+
name: Docker Build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: docker/setup-buildx-action@v3
36+
37+
- name: Build image
38+
run: docker build --build-arg OWTF_VERSION=develop -t owtf-docker:ci .

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ FROM kalilinux/kali-rolling
33
MAINTAINER @viyatb viyat.bhalodia@owasp.org, @alexandrasandulescu alecsandra.sandulescu@gmail.com
44

55
# Kali signatures preventive update
6-
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y gnupg
7-
RUN wget -q -O - archive.kali.org/archive-key.asc | apt-key add
6+
RUN apt-get update \
7+
&& apt-get dist-upgrade -y \
8+
&& apt-get install -y --no-install-recommends ca-certificates gnupg wget kali-archive-keyring
89

910
# install required packages from Kali repos
1011
COPY packages.sh /

0 commit comments

Comments
 (0)