Skip to content

Commit dabbf0a

Browse files
authored
Merge pull request #24 from johannes-huther/feature/new-log-level
Add new log level (closes #21)
2 parents d9a3dc6 + e2ba38b commit dabbf0a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ authentication is assumed not to be required. If configured, it must follow the
163163
The default endpoint type is JSON. The argument is only required if you wish to send urlencoded form data.
164164
Otherwise it's optional. <br/><br/>
165165

166+
```yml
167+
verbose: true
168+
```
169+
170+
To enable verbose output in curl set the argument `verbose` to `true`. The default value is `false`. See also: [`curl` docs on option `-v`](https://curl.se/docs/manpage.html#-v).
171+
172+
:warning: **Warning:** This might lead to domain and IP leaking, as well as other security issues as the logs are public. See also [#21](https://github.com/distributhor/workflow-webhook/issues/21) and [#22](https://github.com/distributhor/workflow-webhook/issues/22). :warning:<br/><br/>
173+
166174

167175
```yml
168176
silent: true

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ inputs:
1111
description: 'Credentials to be used for BASIC authentication (optional)'
1212
webhook_type:
1313
description: 'json | form-urlencoded | json-extended'
14+
verbose:
15+
description: 'Optional, set to true to enable verbose output. Warning: this might lead to domain and IP leaking, as well as other security issues as the logs are public.'
1416
silent:
1517
description: 'Optional, set to true to disable output and therefore IP leaking'
1618
verify_ssl:

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ fi
7373

7474
options="--http1.1 --fail"
7575

76-
if [ "$silent" ]; then
77-
options="$options -s"
78-
else
76+
if [ "$verbose" = true ]; then
7977
options="$options -v"
78+
elif [ "$silent" = true ]; then
79+
options="$options -s"
8080
fi
8181

8282
if [ "$verify_ssl" = false ]; then

0 commit comments

Comments
 (0)