Skip to content

Commit

Permalink
OWASP OWASP#714 : Fixing workflow triggering isues
Browse files Browse the repository at this point in the history
  • Loading branch information
puneeth072003 committed Oct 31, 2023
1 parent cca1d20 commit 80b8f6e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/dast-zap-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80b8f6e

Please sign in to comment.