PPTX, XLSX render and scan for --doc (#616) #767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |