Skip to content

Commit a17b724

Browse files
authored
Github workflow security issues (high-priority) (#117)
1 parent dee87a3 commit a17b724

12 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/post-merge-admin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/post-merge-app-orch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/post-merge-cluster-orch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/post-merge-infra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/post-merge-root.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/post-merge-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
post-merge-pipeline:
18-
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@main
18+
uses: open-edge-platform/orch-ci/.github/workflows/post-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
1919
with:
2020
bootstrap_tools: "base,helm,yq,jq"
2121
run_version_check: true

.github/workflows/pr-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
run: git config --global --add safe.directory $GITHUB_WORKSPACE
2121

2222
- name: Discover changed files at root level
23-
uses: open-edge-platform/orch-ci/discover-changed-files@main
23+
uses: open-edge-platform/orch-ci/discover-changed-files@3418f8ec5279259494a2da98d5995c561a951a3a
2424
id: root-file-changes
2525

2626
- name: Discover changed folders at root level
27-
uses: open-edge-platform/orch-ci/discover-changed-subfolders@main
27+
uses: open-edge-platform/orch-ci/discover-changed-subfolders@3418f8ec5279259494a2da98d5995c561a951a3a
2828
id: discover-changes
2929

3030
- name: Discover changed apps
31-
uses: open-edge-platform/orch-ci/discover-changed-subfolders@main
31+
uses: open-edge-platform/orch-ci/discover-changed-subfolders@3418f8ec5279259494a2da98d5995c561a951a3a
3232
id: discover-changes-apps
3333
with:
3434
project_folder: "apps"
@@ -87,7 +87,7 @@ jobs:
8787
fail-fast: false
8888
matrix:
8989
project_folder: ${{ (needs.setup-conditions.outputs.common_condition == 'true' && fromJson('["admin", "app-orch", "cluster-orch", "infra", "root"]')) || fromJson(needs.detect-changed-folders.outputs.changed_apps) }}
90-
uses: open-edge-platform/orch-ci/.github/workflows/pre-merge.yml@feature/push-dev-images
90+
uses: open-edge-platform/orch-ci/.github/workflows/pre-merge.yml@3418f8ec5279259494a2da98d5995c561a951a3a
9191
with:
9292
bootstrap_tools: "base,helm,yq,jq"
9393
run_security_scans: true

apps/admin/deploy/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
mountPath: /usr/share/nginx/html/runtime-config.js
5353
subPath: runtime-config.js
5454
securityContext:
55+
readOnlyRootFilesystem: true
5556
allowPrivilegeEscalation: false
5657
capabilities:
5758
drop: ["ALL"]

apps/app-orch/deploy/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
mountPath: /usr/share/nginx/html/runtime-config.js
5353
subPath: runtime-config.js
5454
securityContext:
55+
readOnlyRootFilesystem: true
5556
allowPrivilegeEscalation: false
5657
capabilities:
5758
drop: ["ALL"]

apps/cluster-orch/deploy/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ spec:
5252
mountPath: /usr/share/nginx/html/runtime-config.js
5353
subPath: runtime-config.js
5454
securityContext:
55+
readOnlyRootFilesystem: true
5556
allowPrivilegeEscalation: false
5657
capabilities:
5758
drop: ["ALL"]

0 commit comments

Comments
 (0)