88 pull_request :
99 types : [opened, reopened, synchronize]
1010
11+ permissions : {}
12+
1113jobs :
1214 detect-changed-folders :
15+ permissions :
16+ contents : read
1317 runs-on : ' ubuntu-latest'
1418 outputs :
1519 changed_files_root : ${{ steps.root-file-changes.outputs.changed_files }}
@@ -20,20 +24,22 @@ jobs:
2024 run : git config --global --add safe.directory $GITHUB_WORKSPACE
2125
2226 - name : Discover changed files at root level
23- uses : open-edge-platform/orch-ci/discover-changed-files@3418f8ec5279259494a2da98d5995c561a951a3a
27+ uses : open-edge-platform/orch-ci/discover-changed-files@0.1.10
2428 id : root-file-changes
2529
2630 - name : Discover changed folders at root level
27- uses : open-edge-platform/orch-ci/discover-changed-subfolders@3418f8ec5279259494a2da98d5995c561a951a3a
31+ uses : open-edge-platform/orch-ci/discover-changed-subfolders@0.1.10
2832 id : discover-changes
2933
3034 - name : Discover changed apps
31- uses : open-edge-platform/orch-ci/discover-changed-subfolders@3418f8ec5279259494a2da98d5995c561a951a3a
35+ uses : open-edge-platform/orch-ci/discover-changed-subfolders@0.1.10
3236 id : discover-changes-apps
3337 with :
3438 project_folder : " apps"
3539
3640 license-check :
41+ permissions :
42+ contents : read
3743 runs-on : ' ubuntu-latest'
3844 steps :
3945 - name : Checkout code
4349 run : make license
4450
4551 matching-versions :
52+ permissions :
53+ contents : read
4654 name : Check that VERSION files and Chart versions match
4755 runs-on : ' ubuntu-latest'
4856 steps :
5765 bash -c "diff -u <(echo -n) <(git diff .)"
5866
5967 setup-conditions :
68+ permissions :
69+ contents : read
6070 needs : detect-changed-folders
6171 runs-on : ' ubuntu-latest'
6272 outputs :
@@ -71,23 +81,29 @@ jobs:
7181 echo "Common condition: ${{ contains(needs.detect-changed-folders.outputs.changed_projects_root, 'library') || contains(needs.detect-changed-folders.outputs.changed_projects_root, '.github') || contains(needs.detect-changed-folders.outputs.changed_files_root, 'common.mk') || contains(needs.detect-changed-folders.outputs.changed_files_root, 'package-lock.json') || '' == 'false' }}"
7282
7383 library-pipeline :
84+ permissions :
85+ contents : read
7486 needs : setup-conditions
7587 if : needs.setup-conditions.outputs.common_condition == 'true'
7688 uses : ./.github/workflows/library.yml
7789 secrets : inherit
7890
7991 e2e-tests-pipeline :
92+ permissions :
93+ contents : read
8094 uses : ./.github/workflows/e2e-tests.yml
8195 secrets : inherit
8296
8397 pre-merge-pipeline :
98+ permissions :
99+ contents : read
84100 needs : [detect-changed-folders, setup-conditions]
85101 if : ${{ needs.setup-conditions.outputs.common_condition == 'true' || (needs.setup-conditions.outputs.common_condition == 'false' && fromJson(needs.detect-changed-folders.outputs.changed_apps)[0] != null) }}
86102 strategy :
87103 fail-fast : false
88104 matrix :
89105 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@3418f8ec5279259494a2da98d5995c561a951a3a
106+ uses : open-edge-platform/orch-ci/.github/workflows/pre-merge.yml@0.1.10
91107 with :
92108 bootstrap_tools : " base,helm,yq,jq"
93109 run_security_scans : true
@@ -110,6 +126,8 @@ jobs:
110126 secrets : inherit
111127
112128 final-check :
129+ permissions :
130+ contents : read
113131 runs-on : ubuntu-latest
114132 if : ${{ always() }}
115133 needs : [detect-changed-folders, setup-conditions, library-pipeline, e2e-tests-pipeline, pre-merge-pipeline]
0 commit comments