Skip to content

xml detect enchancement (#659) #794

xml detect enchancement (#659)

xml detect enchancement (#659) #794

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: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: CredSweeper action
uses: Samsung/[email protected] # may be changed to any tag
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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: output.json
path: output.json
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #