Skip to content

Commit 1f8699a

Browse files
committed
OWASP OWASP#714 : Fixing workflow triggering isues
1 parent 4aed9af commit 1f8699a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/dast-zap-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
uses: actions/checkout@v4
1818
- name: Trigger Building JAR cache with Git CLI
1919
if: steps.cache.outputs.cache-hit != 'true'
20-
env:
21-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2220
run: |
23-
pwd
24-
cd .github/workflows
25-
gh workflow run "Building JAR cache" --ref "main"
21+
curl -X POST \
22+
-H "Authorization: ${{ secrets.GITHUB_TOKEN }}" \
23+
-H "Accept: application/vnd.github.v3+json" \
24+
https://github.com/puneeth072003/wrongsecrets/blob/chal/.github/workflows/building-jar-cache.yml
25+
-d '{"ref":"main"}'
2626
- name: Start wrongsecrets
2727
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
2828
- name: ZAP Scan

0 commit comments

Comments
 (0)