Skip to content

softreset (#592)

softreset (#592) #752

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@v4
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@v4
with:
name: output.json
path: output.json
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #