Skip to content

Commit 5d8333e

Browse files
committed
first commit for actions-log4j
1 parent f26afcd commit 5d8333e

File tree

4 files changed

+40
-23
lines changed

4 files changed

+40
-23
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Example Workflow Using the SecureStack log4j scanning Action
2+
on: push
3+
jobs:
4+
security:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: log4j Scanning Step
8+
id: log4j
9+
uses: SecureStackCo/[email protected]
10+
with:
11+
securestack_api_key: ${{ secrets.SECURESTACK_API_KEY_SECRET }}
12+
securestack_app_id: ${{ secrets.SECURESTACK_APP_ID }}
13+
severity: critical

.gitignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

action.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'SecureStack Log4j Vulnerability Analysis'
2+
description: 'Scans your application for the presence of serious vulnerabilities in Log4j'
3+
icon: 'shield'
4+
color: 'green'
5+
inputs:
6+
securestack_api_key:
7+
description: 'SecureStack API key - generate an API key at https://app.securestack.com'
8+
required: true
9+
securestack_app_id:
10+
description: 'SecureStack Application ID - can be retrieved by accessing required application at https://app.securestack.com'
11+
required: true
12+
severity:
13+
description: 'Severities lower than this value will be reported in the workflow console but will not cause an error for the action; value should be one of: critical | high | medium | low'
14+
required: true
15+
runs:
16+
using: 'composite'
17+
steps:
18+
- name: Pull bloodhound-cli image
19+
shell: bash
20+
run: docker pull securestackau/bloodhound-cli
21+
- name: Run bloodhound-cli
22+
shell: bash
23+
env:
24+
BH_API_KEY: ${{ inputs.securestack_api_key }}
25+
BH_APP_ID: ${{ inputs.securestack_app_id }}
26+
BH_SEVERITY: ${{ inputs.severity }}
27+
run: docker run -e BH_API_KEY -e BH_APP_ID -e BH_SEVERITY securestackau/bloodhound-cli code -t java -a $BH_APP_ID; echo $?

test/log4j-core-2.13.3.jar

1.63 MB
Binary file not shown.

0 commit comments

Comments
 (0)