Skip to content
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

fix: workflow cannot find commit hashes #16

Merged
merged 8 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
6 changes: 5 additions & 1 deletion .github/workflows/validate_robopages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '!.github/**'
branches:
- main
- workflow/fix-sha-ref-issues

jobs:
validate:
Expand Down Expand Up @@ -48,8 +49,11 @@ jobs:
dreadnode/robopages:latest validate --path "$(printf '%q' "$file")"
}

# Fetch the base branch to ensure we have the commit history
git fetch origin ${{ github.base_ref }}

# Get changed files, excluding .github directory
changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | \
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | \
grep '\.yml$' | grep -v '^.github/' || true)

# Validate each changed file
Expand Down
23 changes: 22 additions & 1 deletion cybersecurity/offensive/information-gathering/amass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,28 @@ functions:
- amass
- enum
- -brute
- -min-for-recursive
- -min-for-recursive
- '2'
- -d
- ${target}

amass_test:
description: Perform DNS enumeration and network mapping of systems exposed to the Internet.
parameters:
target:
type: string
description: The URL of the target to scan.
examples:
- https://target.tld

container:
image: caffix/amass

cmdline:
- amass
- enum
- -brute
- -min-for-recursive
- '2'
- -d
- ${target}
Expand Down