Skip to content

IBAN detector, samples and slight fixes (#392) #626

IBAN detector, samples and slight fixes (#392)

IBAN detector, samples and slight fixes (#392) #626

Workflow file for this run

# This workflow tests github action feature and integration
name: ActionTest
on:
push:
branches: [ main ]
jobs:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
ActionTest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: CredSweeper test
# TODO: change @action to release point with the action
uses: Samsung/CredSweeper@main
with:
# args - arguments to credsweeper tool. See default values in action.yml
args: --path ./tests/samples/ --save-json
- name: Prepare commit status
run: |
ITEMS_CNT=$(jq '. | length' output.json)
if [ 1 -lt ${ITEMS_CNT} ]; then
echo "Samples were successfully scanned"
else
echo "Unexpected items: ${ITEMS_CNT}"
exit 1
fi
- name: CredSweeper report
if: always()
uses: actions/upload-artifact@v3
with:
name: output.json
path: output.json
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #