Dummy candidate refactoring (#665) #1
This file contains hidden or 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: 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/CredSweeper@v1.9.6 # 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@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
| with: | |
| name: output.json | |
| path: output.json | |
| # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |