@@ -71,11 +71,13 @@ Provides GitHub Workflow and Action samples.
7171cp .github/workflows/dispatch-request-exmple.json request-body.json
7272cat request-body.json
7373
74+ TOKEN=" example-github_pat_XXXXX"
75+
7476curl -d @request-body.json \
7577 -H " Accept: application/vnd.github+json" \
7678 -H " X-GitHub-Api-Version: 2022-11-28" \
77- -H " Authorization: Bearer <your-token> " \
78- https://github.com/DevSecOpsSamples/githubactions/actions/workflows/dispatch-example.yml/dispatches
79+ -H " Authorization: Bearer $TOKEN " \
80+ https://api. github.com/repos /DevSecOpsSamples/githubactions/actions/workflows/dispatch-example.yml/dispatches
7981```
8082
8183develop branch:
@@ -86,8 +88,8 @@ develop branch:
8688{
8789 "ref" : " develop" ,
8890 "inputs" : {
89- "test-url-tag " : " gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2" ,
90- "prod-url " : " gcr.io/project-id/target-image"
91+ "source_regurl_tag " : " gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2" ,
92+ "target_regurl " : " gcr.io/project-id/target-image"
9193 }
9294}
9395```
@@ -96,10 +98,10 @@ master branch:
9698
9799``` json
98100{
99- "ref" : " develop " ,
101+ "ref" : " master " ,
100102 "inputs" : {
101- "test-url-tag " : " gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2" ,
102- "prod-url " : " gcr.io/project-id/target-image"
103+ "source_regurl_tag " : " gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2" ,
104+ "target_regurl " : " gcr.io/project-id/target-image"
103105 }
104106}
105107```
0 commit comments