Skip to content

Commit

Permalink
OWASP OWASP#714 : Fixing issues related to triggering of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
puneeth072003 committed Oct 30, 2023
1 parent 4fd1aca commit 13d4aab
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/dast-zap-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,14 @@ jobs:
# key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# JarCache-${{ runner.os }}-
- name: Trigger JAR cache build
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/github-script@v6
- name: Trigger Building JAR cache
uses: actions/checkout@v2
with:
script: |
const {owner, repo} = context.repo
await github.rest.actions.createWorkflowDispatch({
owner,
repo,
workflow_id: 'building-jar-cache.yml',
ref: 'main'
})
repository: owner/repo
token: ${{ secrets.GITHUB_TOKEN }}
path: .github/workflows/building-jar-cache.yml
- name: Run Building JAR cache workflow
run: gh workflow run "Building JAR cache" --ref main
- name: Start wrongsecrets
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
- name: ZAP Scan
Expand Down

0 comments on commit 13d4aab

Please sign in to comment.