File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 18
18
- name : Trigger Building JAR cache
19
19
if : steps.cache.outputs.cache-hit != 'true'
20
20
run : |
21
- const { Octokit } = require("@octokit/core");
22
- const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
23
- const { data: workflows } = await octokit.request("GET /repos/commjoen/wrongsecrets/actions/workflows", {
24
- owner: process.env.GITHUB_REPOSITORY.split("/")[0],
25
- repo: process.env.GITHUB_REPOSITORY.split("/")[1]
26
- });
27
- const secondWorkflow = workflows.workflows.find(w => w.name === "building-jar-cache.yml");
28
- if (secondWorkflow) {
29
- await octokit.request("POST /repos/commjoen/wrongsecrets/actions/workflows/Building JAR cache/dispatches", {
30
- owner: process.env.GITHUB_REPOSITORY.split("/")[0],
31
- repo: process.env.GITHUB_REPOSITORY.split("/")[1],
32
- workflow_id: secondWorkflow.id
33
- });
34
- }
21
+ gh workflow run "Building JAR cache" --ref "main"
35
22
- name : Start wrongsecrets
36
23
run : nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
37
24
- name : ZAP Scan
You can’t perform that action at this time.
0 commit comments