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: remove expects url server #702

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ definition:
- name: crowdsec
keys:
- CROWDSEC_API_TOKEN
- CROWDSEC_API_URL
optional_keys: null
expects:
cn:
Expand All @@ -27,10 +28,6 @@ definition:
type: str
description: The IP address to block
default: null
url_server:
type: str
description: Your local url api crowdsec
default: null
timestamp:
type: str
description: Time
Expand All @@ -39,7 +36,7 @@ definition:
- ref: block_ip_address
action: core.http_request
args:
url: ${{ inputs.url_server }}/v1/alerts
url: ${{ SECRETS.crowdsec.CROWDSEC_API_URL }}/v1/alerts
method: POST
headers:
accept: application/json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ definition:
type: str
description: The IP address to unblock
default: null
url_server:
type: str
description: The IP address server
default: null
steps:
- ref: unblock_ip_address
action: core.http_request
Expand Down