@@ -26,119 +26,42 @@ Commit that resulted in the image being built
2626
2727## Example - github-actions
2828 ```
29- - name: report image by action
30- with:
31- CF_HOST: "https://my-runtime-url"
32- CF_API_KEY: ${{ secrets.CF_TOKEN }}
33-
34- #Codefresh Integrations to USE
35- CF_CONTAINER_REGISTRY_INTEGRATION: "dockerhub"
36- CF_JIRA_INTEGRATION: "jira"
37-
38- CF_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/my-image-name:tag
39-
40- CF_GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
41-
42- #Jira issues that match
43- CF_JIRA_MESSAGE: "CR-12293"
44- CF_JIRA_PROJECT_PREFIX: "CR"
45- uses: codefresh-io/codefresh-report-image@latest
29+
30+ - name: report image
31+ with:
32+ # Name of runtime to implement the enrichment
33+ CF_RUNTIME_NAME: 'codefresh-hosted'
34+
35+ # Codefresh API key !! Committing a plain text token is a security risk. We highly recommend using an encrypted secrets. !!
36+ # Documentation - https://docs.github.com/en/actions/security-guides/encrypted-secrets
37+ CF_API_KEY: ${{ secrets.CF_TOKEN }}
38+
39+ # Image path to enrich
40+ CF_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/my-image-name:tag
41+
42+ # Name of Container registry integration
43+ CF_CONTAINER_REGISTRY_INTEGRATION: 'testghjmjhg'
44+
45+ # The git branch which is related for the commit
46+ CF_GIT_BRANCH: '${{ github.ref_name }}'
47+
48+ # GitHub Access token !! Committing a plain text token is a security risk. We highly recommend using an encrypted secrets. !!
49+ # Documentation - https://docs.github.com/en/actions/security-guides/encrypted-secrets
50+ CF_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+ # Name of Jira integration
53+ CF_JIRA_INTEGRATION: 'eti-jira'
54+
55+ # Jira project filter
56+ CF_JIRA_PROJECT_PREFIX: 'CR'
57+
58+ # String starting with the issue ID to associate with image
59+ CF_JIRA_MESSAGE: 'CR-12293'
60+
61+
62+ uses: codefresh-io/codefresh-report-image@latest
4663 ```
4764
4865
4966# Complete List of Arguments
50- ### service
51- - #### CF_HOST
52- - ** description** : Name of runtime to implement the enrichment
53- - required
54- - [ "example",[ "https://codefresh.yourdoamin.com:80" ]]
55- - ** default** : [ runtime_host_url]
56- - #### CF_API_KEY
57- - ** description** : Codefresh API key
58- - required
59- - secret
60- ### general
61- - #### CF_IMAGE
62- - ** description** : Image path to enrich
63- - required
64- - [ "examples",[ "mydockerhub/pushedimage: fix "]]
65- - ** default** : [ full image path here, including tag]
66- - #### CF_CONTAINER_REGISTRY_INTEGRATION
67- - ** description** : Name of Container registry integration
68- - #### CF_WORKFLOW_URL
69- - ** description** : The reported URL of the workflow that builds the image.
70- - [ "examples",[ "https://github.com/saffi-codefresh/csdp-report-image-github-action/actions/runs/2389116616" ]]
71- - ** default** : [ URL of the workflow that builds the image]
72- - #### CF_WORKFLOW_NAME
73- - ** description** : The name assigned to the workflow that builds the image. When defined, the name is displayed in the Codefresh platform.
74- - [ "examples",[ "Staging build step"]]
75- - #### CF_CI_TYPE
76- - ** description** : Name of integration type, used for filtering results by the reporting tool type
77- - [ "examples",[ "git-action","classic","jenkins",""]]
78- ### git
79- - #### CF_GIT_BRANCH
80- - ** description** : The git branch which is related for the commit
81- - #### CF_GIT_REPO
82- - ** description** : The the git repository used for building the image
83- - required
84- ### explicit-git-setup
85- - #### CF_GIT_PROVIDER
86- - ** description** : The git integration type use (i.e. github)
87- - required
88- ### github
89- - #### CF_GITHUB_TOKEN
90- - ** description** : GitHub Access token
91- - required
92- - [ "examples",[ "ghp_vVvA6oh5iCO...."]]
93- - secret
94- - ** default** : [ github-personal-access-token]
95- - #### CF_GITHUB_API_URL
96- - ** description** : Specify github host api url
97- - [ "examples",[ "https://api.github.com" ]]
98- ### gitlab
99- - #### CF_GITLAB_TOKEN
100- - ** description** : When explicit authentication used: For gitlab use, authenticate with a gitlab-token
101- - required
102- - [ "examples",[ "glpat-CzJ...."]]
103- - secret
104- - #### CF_GITLAB_HOST_URL
105- - ** description** : Specify gitlab host url
106- - [ "examples",[ "https://gitlab.com" ]]
107- ### bitbucket
108- - #### CF_BITBUCKET_USERNAME
109- - ** description** : Bitbucket username
110- - required
111- - #### CF_BITBUCKET_PASSWORD
112- - ** description** : Bitbucket password
113- - required
114- - secret
115- ### bitbucketServer
116- - #### CF_BITBUCKET_USERNAME
117- - ** description** : Bitbucket server username
118- - required
119- - #### CF_BITBUCKET_PASSWORD
120- - ** description** : Bitbucket server password
121- - required
122- - secret
123- - #### CF_BITBUCKET_HOST_URL
124- - ** description** : Bitbucket server host url
125- - required
126- - [ "examples",[ "https://bitbucket-server:7990" ]]
127- ### jira
128- - #### CF_JIRA_INTEGRATION
129- - ** description** : Name of Jira integration
130- - ** default** : [ jira-registry-integration-name]
131- - #### CF_JIRA_PROJECT_PREFIX
132- - ** description** : Jira project filter
133- - required
134- - [ "examples",[ "CR"]]
135- - ** default** : [ jira-project-prefix]
136- - #### CF_JIRA_MESSAGE
137- - ** description** : String starting with the issue ID to associate with image
138- - required
139- - [ "examples",[ "fix CR-11312 "]]
140- - ** default** : [ issue id]
141- - #### CF_JIRA_FAIL_ON_NOT_FOUND
142- - ** description** : When enabled, Fail the image report when the specified Jira issue is not found.
143- - [ "examples",[ "true"]]
144-
67+ https://codefresh.io/csdp-docs/docs/integrations/github-actions/#codefresh-github-action-integration-arguments
0 commit comments