DOC_GET rule fix (#741) #1042
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 only after release | |
| # Only static references are allowed in 'uses:', so new packages from a PR are not available | |
| name: ActionTest | |
| on: | |
| push: | |
| branches: [ main ] | |
| release: | |
| types: [ published ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ActionTest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 - 2025.01.20 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - 2024.10.23 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: CredSweeper action | |
| # dynamic links are not allowed for 'uses:' | |
| # may be changed to any tag BUT not to dynamic! e.g.: ${{ github.event.pull_request.head.sha }} | |
| uses: Samsung/CredSweeper@main # lazy link to the branch for test | |
| with: | |
| error: "--no-error" | |
| hashed: "--no-hashed" | |
| path: tests/samples | |
| - name: Verify output | |
| run: | | |
| ITEMS_CNT=$(jq '. | length' output.json) | |
| if [ 100 -lt ${ITEMS_CNT} ]; then | |
| echo "Samples were successfully scanned" | |
| else | |
| echo "Unexpected items count: ${ITEMS_CNT}" | |
| exit 1 | |
| fi | |
| - name: Upload output | |
| if: always() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 - 2025.01.09 | |
| with: | |
| name: output.json | |
| path: output.json |