diff --git a/.github/workflows/dast-zap-test.yml b/.github/workflows/dast-zap-test.yml index 6c002c0be..ef822e234 100644 --- a/.github/workflows/dast-zap-test.yml +++ b/.github/workflows/dast-zap-test.yml @@ -15,23 +15,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - uses: actions/checkout@v4 - - name: Check the cache - uses: actions/cache/restore@v3 - id: cache - with: - path: ./target - key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} - restore-keys: jar- - - name: Check cache hit - id: cache-hit-check - run: | - echo "cache-hit=${{ steps.cache.outputs.cache-hit }}" >> $GITHUB_ENV - name: Trigger Building JAR cache if: steps.cache.outputs.cache-hit != 'true' uses: actions/github-script@v4 with: - script: | + script: | const { data: workflows } = await octokit.actions.listRepoWorkflows({ owner: context.repo.owner, repo: context.repo.repo