8000 feat(core): restore default task opts, improve workflows by ocervell · Pull Request #560 · freelabz/secator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(core): restore default task opts, improve workflows #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
41a6976
feat(tasks): add missing task options and restore defaults to tools d…
ocervell Feb 28, 2025
7bffa56
Merge branch 'main' into improve-defaults-tools-opts
ocervell Mar 10, 2025
062b796
Merge branch 'main' into improve-defaults-tools-opts
ocervell Apr 18, 2025
a64a81b
Merge branch 'main' into improve-defaults-tools-opts
ocervell Apr 24, 2025
f9ad885
remove comment
ocervell Apr 24, 2025
1bf5eeb
update
ocervell Apr 24, 2025
07ae095
rework inputs filtering to revert to inputs
ocervell Apr 24, 2025
3614f2c
remove -Pn from default opts
ocervell Apr 24, 2025
800b5eb
update
ocervell Apr 24, 2025
75f5626
update
ocervell Apr 24, 2025
86cb9af
update
ocervell Apr 24, 2025
d47acec
update
ocervell Apr 24, 2025
7420e03
pin tools versions, add workflow for checking tasks, fix integration …
ocervell Apr 28, 2025
ca1d5dc
fix dirsearch json option with latest version
ocervell Apr 28, 2025
6c4d352
improve workflow
ocervell Apr 28, 2025
0a03212
update workflow
ocervell Apr 28, 2025
a24fea6 8000
update workflow
ocervell Apr 28, 2025
129136e
update
ocervell Apr 28, 2025
7226f11
update
ocervell Apr 28, 2025
18a8451
Merge branch 'main' into improve-defaults-tools-opts
ocervell Apr 28, 2025
b8c8967
update
ocervell Apr 28, 2025
5418466
update
ocervell Apr 28, 2025
502ee29
update
ocervell Apr 28, 2025
7bb5343
update
ocervell Apr 28, 2025
8e6a1e0
update
ocervell Apr 28, 2025
2830874
update
ocervell Apr 28, 2025
7aeeca2
updatte
ocervell Apr 28, 2025
46bb48f
update
ocervell Apr 28, 2025
574239a
updatre
ocervell Apr 28, 2025
f049454
update
ocervell Apr 28, 2025
a8ed357
update
ocervell Apr 28, 2025
a80f1c0
update
ocervell Apr 28, 2025
68c65a0
update
ocervell Apr 28, 2025
a100264
update
ocervell Apr 28, 2025
34b64ec
update
ocervell Apr 28, 2025
15bcd26
update
ocervell Apr 28, 2025
8b98c48
update
ocervell Apr 28, 2025
bd7c4c3
update
ocervell Apr 28, 2025
e2f0c70
update
ocervell Apr 28, 2025
66c7898
update
ocervell Apr 28, 2025
3e8ba35
update
ocervell Apr 28, 2025
01c6934
update
ocervell Apr 28, 2025
d8962c2
update
ocervell Apr 28, 2025
e71a44e
update
ocervell Apr 28, 2025
15ecc2b
update
ocervell Apr 28, 2025
47f1257
update
ocervell Apr 28, 2025
d13112c
use cls.cmd to infer command name to fetch version
ocervell Apr 29, 2025
8d8cfb6
update
ocervell Apr 29, 2025
cb88073
update
ocervell Apr 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN pipx install --pip-args="--no-cache-dir" . && \

FROM python:3.12-alpine
ARG flavor=full
ARG build_from_source=false
ENV TERM="xterm-256color"
ENV PATH="${PATH}:/root/.local/bin"
ENV GOBIN="/root/.local/bin"
Expand All @@ -29,5 +30,6 @@ RUN apk add --no-cache \
flock \
pipx \
sudo
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
4 changes: 2 additions & 2 deletions .docker/Dockerfile.arch
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ RUN pipx install . && \
secator install addons mongodb && \
secator install addons redis && \
secator install addons dev
RUN secator config set security.force_source_install true
RUN secator install tools --cleanup --fail-fast
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
4 changes: 2 additions & 2 deletions .docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ RUN pipx install . && \
secator install addons redis && \
secator install addons dev
RUN secator install langs go
RUN secator config set security.force_source_install true
RUN secator install tools --cleanup --fail-fast
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
4 changes: 2 additions & 2 deletions .docker/Dockerfile.kali
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ RUN pipx install . && \
secator install addons mongodb && \
secator install addons redis && \
secator install addons dev
RUN secator config set security.force_source_install true
RUN secator install tools --cleanup --fail-fast
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
4 changes: 2 additions & 2 deletions .docker/Dockerfile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ RUN pipx install . && \
secator install addons mongodb && \
secator install addons redis && \
secator install addons dev
RUN secator config set security.force_source_install true
RUN secator install tools --cleanup --fail-fast
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
4 changes: 2 additions & 2 deletions .docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ RUN pipx install . && \
secator install addons mongodb && \
secator install addons redis && \
secator install addons dev
RUN secator config set security.force_source_install true
RUN secator install tools --cleanup --fail-fast
RUN if [ "$build_from_source" = "true" ]; then secator config set security.force_source_install 1; fi
RUN if [ "$flavor" != "lite" ]; then secator install tools --cleanup --fail-fast; fi
ENTRYPOINT ["secator"]
56 changes: 56 additions & 0 deletions .github/workflows/new_or_updated_task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Tasks

on:
push:
paths:
- 'secator/tasks/*.py'
branches:
- release-please*
pull_request:
types: [labeled, synchronize]
paths:
- 'secator/tasks/*.py'

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test-tasks:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: ["ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install secator
uses: ./.github/actions/install
with:
python-version: ${{ matrix.python-version }}

- name: Detect changed or all tasks
run: |
if [[ ${{ github.event_name }} == "push" && ${{ github.ref_name }} =~ ^release-please.* ]]; then
TASKS=$(secator x --list)
echo "Running all tasks"
else
TASKS=$(git diff --name-only --diff-filter=AMR origin/main HEAD | grep '^secator/tasks/.*\.py$' | grep -v '_.*\.py$' | sed 's/\.py$//' | sed 's/^secator\/tasks\///')
echo "Changed tasks: $TASKS"
fi

FAILED=0
for task in $TASKS; do
if ! secator test task -c $task; then
FAILED=1
fi
echo ""
done
if [ $FAILED -eq 1 ]; then
exit 1
fi
Loading
0