Skip to content

Commit 4a86f6d

Browse files
Merge branch 'master' into feat-vault-1
2 parents 5017418 + 4c7c8d1 commit 4a86f6d

File tree

20 files changed

+465
-59
lines changed

20 files changed

+465
-59
lines changed

graduated/git-clone/step.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "1.0"
33
metadata:
44
name: git-clone
55
title: Clone a Git repository
6-
version: 1.0.5
6+
version: 1.0.6
77
isPublic: true
88
description: Clone a Git repository with Codefresh's built in Git provider integration.
99
sources:
@@ -77,6 +77,10 @@ spec:
7777
"exclude_blobs": {
7878
"type": "boolean",
7979
"description": "(boolean) Filter out all blobs (file contents). The default value is False."
80+
},
81+
"skip_tags_on_update": {
82+
"type": "boolean",
83+
"description": "When set, fetch updates without tags to minimize data transfer. If unset, tags are included in the fetch operation. The default value is False."
8084
}
8185
}
8286
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
dist
3+
argocd_app_status.spec

incubating/argocd-app-status/CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
# Changelog
2-
## [1.1.2] - 2023-09-18
2+
## [1.1.3] - 2024-11-20
33
### Changed
4+
* upgrade yarl to 1.17.2
5+
6+
### Fixed
7+
* CVE-2024-45491 - upgrade libexpat1
8+
* CVE-2024-45492 - upgrade libexpat1
9+
* CVE-2024-37371 - upgrade libkrb5
10+
* CVE-2023-45853 - upgrade zlib1g
11+
12+
## [1.1.2] - 2023-09-18
13+
414

515
### Fixed
616
- PYSEC-2023-135 - upgrade Python module certifi to 2023.7.22
717
- CVE-2019-8457 - upgrade base image to python:3.11.5-slim-bookworm
818

919
## [1.1.1] - 2023-06-03
1020
### Changed
11-
- Upgrade pythpn version to 3.11.3
21+
- Upgrade python version to 3.11.3
1222

1323
### Fixed
1424
- Link for application
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1-
FROM python:3.11.5-slim-bookworm
1+
# stage 1 Build
2+
# Bookworm is debian based
3+
FROM python:3.13.1-slim-bookworm AS builder
24
WORKDIR /app
35
COPY requirements.txt requirements.txt
4-
RUN pip3 install -r requirements.txt
56
COPY queries queries/
67
COPY argocd_app_status.py argocd_app_status.py
7-
CMD [ "python3", "argocd_app_status.py"]
8+
9+
RUN apt-get update && apt-get install -y binutils
10+
RUN pip3 install -r requirements.txt
11+
RUN pip3 install pyinstaller
12+
RUN pyinstaller --strip --onefile argocd_app_status.py
13+
14+
# stage 2 : Prod
15+
FROM debian:bookworm-slim
16+
17+
# USER cfuser
18+
RUN adduser cfuser --home /home/codefresh --shel /bin/sh
19+
USER cfuser
20+
21+
WORKDIR /app
22+
COPY queries queries/
23+
COPY --from=builder /app/dist/argocd_app_status argocd_app_status
24+
ENTRYPOINT ["/app/argocd_app_status"]

incubating/argocd-app-status/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ docopt==0.6.2
55
gql==3.4.0
66
graphql-core==3.2.3
77
idna==3.4
8-
multidict==6.0.4
8+
multidict==6.1.0
99
pipreqs==0.4.13
1010
requests==2.31.0
1111
requests-toolbelt==0.10.1
1212
urllib3==1.26.16
1313
yarg==0.1.9
14-
yarl==1.9.2
14+
yarl==1.17.2

incubating/argocd-app-status/step.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: step-type
22
metadata:
33
name: argocd-app-status
4-
version: 1.1.2
4+
version: 1.1.3
55
isPublic: true
66
description: Get Argo CD App status and return its sybc and health status
77
sources:
@@ -61,7 +61,7 @@ spec:
6161
},
6262
"IMAGE_TAG": {
6363
"type": "string",
64-
"default": "1.1.2",
64+
"default": "1.1.3",
6565
"description": "OPTIONAL - To overwrite the tag to use"
6666
}
6767
}
@@ -97,7 +97,7 @@ spec:
9797
[[- end ]]
9898
commands:
9999
- cd /app
100-
- python3 argocd_app_status.py
100+
- /app/argocd_app_status
101101
delimiters:
102102
left: '[['
103103
right: ']]'

incubating/jira-issue-manager/script/jira_issue_manager.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ def environment_setup():
6666
# Logic here to use the regex to grab the jira issue key and assign it to issue
6767
jira_issue_source_field = StepUtility.getEnvironmentVariable('JIRA_ISSUE_SOURCE_FIELD', env)
6868
jira_issue_source_field_regex = StepUtility.getEnvironmentVariable('JIRA_ISSUE_SOURCE_FIELD_REGEX', env)
69-
## TODO - Brandon - need to do regex work here
70-
issue = jira_issue_source_field
69+
70+
if jira_issue_source_field_regex:
71+
issue = re.match(jira_issue_source_field_regex, jira_issue_source_field).group(0)
72+
else:
73+
issue = jira_issue_source_field
7174

7275
# Issue fields below
7376
# Retrieve the project environment variable and add the project to a dict representation

incubating/jira-issue-manager/step.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ kind: step-type
22
version: '1.0'
33
metadata:
44
name: jira-issue-manager
5-
version: 1.0.11
5+
version: 1.0.12
66
title: Jira Issue Manager
77
isPublic: true
88
description: Create, Update, & Validate Jira Issues
@@ -12,6 +12,7 @@ metadata:
1212
stage: incubating
1313
maintainers:
1414
- name: Brandon Phillips
15+
- name: Dustin Van Buskirk
1516
categories:
1617
- build
1718
official: true
@@ -245,7 +246,7 @@ spec:
245246
stepsTemplate: |-
246247
main:
247248
name: jira-issue-manager
248-
image: quay.io/codefreshplugins/jira-issue-manager:1.0.11
249+
image: quay.io/codefreshplugins/jira-issue-manager:1.0.12
249250
environment:
250251
[[ range $key, $val := .Arguments ]]
251252
- '[[ $key ]]=[[ $val ]]'

incubating/newrelic-deployment-marker/step.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ version: '1.0'
22
kind: step-type
33
metadata:
44
name: newrelic-deployment-marker
5-
version: 1.0.1
5+
version: 1.0.2
66
isPublic: true
7-
description: Createa a new deployment marker in New Relic.
7+
description: Create a new deployment marker in New Relic.
88
sources:
99
- >-
1010
https://github.com/codefresh-io/steps/tree/master/incubating/newrelic-deployment-marker

incubating/octopusdeploy-create-release/step.yaml

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "1.0"
22
kind: step-type
33
metadata:
44
name: octopusdeploy-create-release
5-
version: 1.0.0
5+
version: 1.0.1
66
title: Create a release in Octopus Deploy
77
isPublic: true
88
description: Create a release in Octopus Deploy
@@ -19,7 +19,7 @@ metadata:
1919
maintainers:
2020
- name: OctopusDeploy
2121
examples:
22-
- description: Basic usage of the create release step
22+
- description: Basic usage of the create release step with API key
2323
workflow:
2424
create-release:
2525
type: octopusdeploy-create-release
@@ -28,7 +28,7 @@ metadata:
2828
OCTOPUS_URL: "${{OCTOPUS_URL}}"
2929
OCTOPUS_SPACE: "Spaces 1"
3030
PROJECT: "Project Name"
31-
- description: Complex usage of the create release step
31+
- description: Complex usage of the create release step with API key
3232
workflow:
3333
create-release:
3434
type: octopusdeploy-create-release
@@ -47,6 +47,46 @@ metadata:
4747
RELEASE_NOTES: "This is a release note"
4848
RELEASE_NOTES_FILE: "/release-notes.txt"
4949
IGNORE_EXISTING: false
50+
- description: Basic usage of the create release step with Octopus access token
51+
workflow:
52+
login:
53+
type: octopusdeploy-login
54+
arguments:
55+
ID_TOKEN: "${{ID_TOKEN}}"
56+
OCTOPUS_URL: "${{OCTOPUS_URL}}"
57+
OCTOPUS_SERVICE_ACCOUNT_ID: "${{OCTOPUS_SERVICE_ACCOUNT_ID}}"
58+
create-release:
59+
type: octopusdeploy-create-release
60+
arguments:
61+
OCTOPUS_ACCESS_TOKEN: "${{OCTOPUS_ACCESS_TOKEN}}"
62+
OCTOPUS_URL: "${{OCTOPUS_URL}}"
63+
OCTOPUS_SPACE: "Spaces 1"
64+
PROJECT: "Project Name"
65+
- description: Complex usage of the create release step with Octopus access token
66+
workflow:
67+
login:
68+
type: octopusdeploy-login
69+
arguments:
70+
ID_TOKEN: "${{ID_TOKEN}}"
71+
OCTOPUS_URL: "${{OCTOPUS_URL}}"
72+
OCTOPUS_SERVICE_ACCOUNT_ID: "${{OCTOPUS_SERVICE_ACCOUNT_ID}}"
73+
create-release:
74+
type: octopusdeploy-create-release
75+
arguments:
76+
OCTOPUS_ACCESS_TOKEN: "${{OCTOPUS_ACCESS_TOKEN}}"
77+
OCTOPUS_URL: "${{OCTOPUS_URL}}"
78+
OCTOPUS_SPACE: "Spaces 1"
79+
PROJECT: "Project Name"
80+
RELEASE_NUMBER: "1.0.0"
81+
CHANNEL: "Channel Name"
82+
GIT_REF: "refs/heads/main"
83+
GIT_COMMIT: "Commit ID"
84+
PACKAGE_VERSION: "1.0.0"
85+
PACKAGES:
86+
- "Package:1.0.0"
87+
RELEASE_NOTES: "This is a release note"
88+
RELEASE_NOTES_FILE: "/release-notes.txt"
89+
IGNORE_EXISTING: false
5090
spec:
5191
arguments: |-
5292
{
@@ -56,19 +96,27 @@ spec:
5696
"name": "octopusdeploy-create-release",
5797
"additionalProperties": false,
5898
"patterns": [],
59-
"required": ["OCTOPUS_API_KEY", "OCTOPUS_URL", "OCTOPUS_SPACE", "PROJECT"],
99+
"required": ["OCTOPUS_URL", "OCTOPUS_SPACE", "PROJECT"],
100+
"oneOf": [
101+
{"required": ["OCTOPUS_API_KEY"]},
102+
{"required": ["OCTOPUS_ACCESS_TOKEN"]}
103+
],
60104
"properties": {
61105
"OCTOPUS_API_KEY": {
62106
"type": "string",
63-
"description": "API key for octopus deploy (required)"
107+
"description": "API key for octopus deploy (required when OCTOPUS_ACCESS_TOKEN is not provided)"
108+
},
109+
"OCTOPUS_ACCESS_TOKEN": {
110+
"type": "string",
111+
"description": "Access token for octopus deploy (required when OCTOPUS_API_KEY is not provided)"
64112
},
65113
"OCTOPUS_URL": {
66114
"type": "string",
67115
"description": "URL of the octopus deploy server (required)"
68116
},
69117
"OCTOPUS_SPACE": {
70118
"type": "string",
71-
"description": "API key for octopus deploy (required)"
119+
"description": "Workspace for octopus deploy (required)"
72120
},
73121
"PROJECT": {
74122
"type": "string",
@@ -149,8 +197,13 @@ spec:
149197
[[- if .Arguments.IGNORE_EXISTING ]] --ignore-existing [[ end ]])
150198
- cf_export RELEASE=$OUTPUT
151199
environment:
152-
- 'OCTOPUS_URL=[[.Arguments.OCTOPUS_URL]]'
200+
[[ if .Arguments.OCTOPUS_API_KEY ]]
153201
- 'OCTOPUS_API_KEY=[[.Arguments.OCTOPUS_API_KEY]]'
202+
[[- end ]]
203+
[[ if .Arguments.OCTOPUS_ACCESS_TOKEN ]]
204+
- 'OCTOPUS_ACCESS_TOKEN=[[.Arguments.OCTOPUS_ACCESS_TOKEN]]'
205+
[[- end ]]
206+
- 'OCTOPUS_URL=[[.Arguments.OCTOPUS_URL]]'
154207
- 'OCTOPUS_SPACE=[[.Arguments.OCTOPUS_SPACE]]'
155208
delimiters:
156209
left: "[["

0 commit comments

Comments
 (0)