From 8df91a30c24c50830a6e28d02e4338bf10f41e36 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Wed, 3 Jan 2024 17:54:52 +0100 Subject: [PATCH 01/10] feat(action.yml): add copy from upstream --- .github/workflows/test-local-action.yaml | 153 +++++++++++++---------- README.md | 25 ++++ action.yml | 16 +++ 3 files changed, 128 insertions(+), 66 deletions(-) diff --git a/.github/workflows/test-local-action.yaml b/.github/workflows/test-local-action.yaml index c5d5ff2..ef5e866 100644 --- a/.github/workflows/test-local-action.yaml +++ b/.github/workflows/test-local-action.yaml @@ -1,75 +1,96 @@ on: [push] jobs: - local_test_lasttag: - runs-on: ubuntu-latest - name: Test local action without fixed version - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Test local action - id: local-action - uses: ./ - with: - upstream_repo: sysdiglabs/kube-psp-advisor - local_patch_dir: tests/sysdiglabs/kube-psp-advisor - outputs: - used_tag: ${{ steps.local-action.outputs.tag }} - used_latest: ${{ steps.local-action.outputs.latest }} - tag_major: ${{ steps.local-action.outputs.tag_major }} - tag_minor: ${{ steps.local-action.outputs.tag_minor }} - tag_patch: ${{ steps.local-action.outputs.tag_patch }} + local_test_lasttag: + runs-on: ubuntu-latest + name: Test local action without fixed version + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Test local action + id: local-action + uses: ./ + with: + upstream_repo: sysdiglabs/kube-psp-advisor + local_patch_dir: tests/sysdiglabs/kube-psp-advisor + outputs: + used_tag: ${{ steps.local-action.outputs.tag }} + used_latest: ${{ steps.local-action.outputs.latest }} + tag_major: ${{ steps.local-action.outputs.tag_major }} + tag_minor: ${{ steps.local-action.outputs.tag_minor }} + tag_patch: ${{ steps.local-action.outputs.tag_patch }} - local_test_fixed: - runs-on: ubuntu-latest - name: Test local action with fixed version - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Test local action - id: local-action - uses: ./ - with: - upstream_repo: sysdiglabs/kube-psp-advisor - local_patch_dir: tests/sysdiglabs/kube-psp-advisor - upstream_ref: master - outputs: - used_tag: ${{ steps.local-action.outputs.tag }} - used_latest: ${{ steps.local-action.outputs.latest }} - tag_major: ${{ steps.local-action.outputs.tag_major }} - tag_minor: ${{ steps.local-action.outputs.tag_minor }} - tag_patch: ${{ steps.local-action.outputs.tag_patch }} + local_test_fixed: + runs-on: ubuntu-latest + name: Test local action with fixed version + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Test local action + id: local-action + uses: ./ + with: + upstream_repo: sysdiglabs/kube-psp-advisor + local_patch_dir: tests/sysdiglabs/kube-psp-advisor + upstream_ref: master + outputs: + used_tag: ${{ steps.local-action.outputs.tag }} + used_latest: ${{ steps.local-action.outputs.latest }} + tag_major: ${{ steps.local-action.outputs.tag_major }} + tag_minor: ${{ steps.local-action.outputs.tag_minor }} + tag_patch: ${{ steps.local-action.outputs.tag_patch }} - local_test_upstream_remove_files: - runs-on: ubuntu-latest - name: Test local action with upstream_remove_files set - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Test local action - id: local-action - uses: ./ - with: - upstream_repo: sysdiglabs/kube-psp-advisor - local_patch_dir: tests/sysdiglabs/kube-psp-advisor - upstream_ref: master - upstream_remove_files: | + local_test_upstream_remove_files: + runs-on: ubuntu-latest + name: Test local action with upstream_remove_files set + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Test local action + id: local-action + uses: ./ + with: + upstream_repo: sysdiglabs/kube-psp-advisor + local_patch_dir: tests/sysdiglabs/kube-psp-advisor + upstream_ref: master + upstream_remove_files: | version comparator/comparator.go - - name: Assert that files are removed - id: test-remove - run: |- + - name: Assert that files are removed + id: test-remove + run: |- ! [[ -f upstream/version ]] && ! [[ -f upstream/comparator/comparator.go ]] - shell: bash + shell: bash - print_results: - runs-on: ubuntu-latest - name: Print test results - needs: [local_test_lasttag, local_test_fixed] - steps: - - run: | - echo "local_test_lasttag: ${{ needs.local_test_lasttag.outputs.used_tag }},${{ needs.local_test_lasttag.outputs.used_latest }}" - echo "local_test_fixed: ${{ needs.local_test_fixed.outputs.used_tag }},${{ needs.local_test_fixed.outputs.used_latest }}" - echo "semver_fixed: ${{ needs.local_test_fixed.outputs.tag_major }}, ${{ needs.local_test_fixed.outputs.tag_minor }}, ${{ needs.local_test_fixed.outputs.tag_patch }}" - echo "semver_lasttag: ${{ needs.local_test_lasttag.outputs.tag_major }}, ${{ needs.local_test_lasttag.outputs.tag_minor }}, ${{ needs.local_test_lasttag.outputs.tag_patch }}" - shell: bash + local_test_copy_from_upstream: + runs-on: ubuntu-latest + name: Test local action with upstream_copy set + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Test local action + id: local-action + uses: ./ + with: + upstream_repo: sysdiglabs/kube-psp-advisor + local_patch_dir: tests/sysdiglabs/kube-psp-advisor + upstream_ref: master + upstream_copy_src: | + generator tests/kube-psp-advisor + - name: Assert that files are copied + id: test-copy + run: |- + [[ -f tests/kube-psp-advisor/generator.go ]] && [[ -f tests/kube-psp-advisor/generator_test.go ]] + shell: bash + + print_results: + runs-on: ubuntu-latest + name: Print test results + needs: [local_test_lasttag, local_test_fixed] + steps: + - run: | + echo "local_test_lasttag: ${{ needs.local_test_lasttag.outputs.used_tag }},${{ needs.local_test_lasttag.outputs.used_latest }}" + echo "local_test_fixed: ${{ needs.local_test_fixed.outputs.used_tag }},${{ needs.local_test_fixed.outputs.used_latest }}" + echo "semver_fixed: ${{ needs.local_test_fixed.outputs.tag_major }}, ${{ needs.local_test_fixed.outputs.tag_minor }}, ${{ needs.local_test_fixed.outputs.tag_patch }}" + echo "semver_lasttag: ${{ needs.local_test_lasttag.outputs.tag_major }}, ${{ needs.local_test_lasttag.outputs.tag_minor }}, ${{ needs.local_test_lasttag.outputs.tag_patch }}" + shell: bash diff --git a/README.md b/README.md index daa87cb..403dffd 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Checkout the ref (or latest) upstream version and apply one or more patch files - `upstream_ref`: The upstream ref, can be: branch, tag, sha, if not provided last semver tag will be grabbed automatically - `upstream_tag_regex`: Regex to use while checking the last upstream versions - `upstream_remove_files`: Line separated list of files to remove from upstream repository +- `upstream_copy`: Line separated pair of source directory from upstream and destinations ## Outputs @@ -47,3 +48,27 @@ jobs: local_patch_dir: tests/sysdiglabs/charts upstream_ref: master ``` + +Perform all checks on pull requests and remove files from the upstream repository + +```yaml +name: Checkout and Patch + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + paths: + - 'containers/**' +jobs: + build: + runs-on: self-hosted + steps: + - uses: draios/infra-action-patch-upstream@v1 + with: + upstream_repo: sysdiglabs/charts + local_patch_dir: tests/sysdiglabs/charts + upstream_ref: master + upstream_remove_files: | + scripts/cluster-scanner/README.md + scripts/cluster-scanner/generate_kubeconfig.sh +``` diff --git a/action.yml b/action.yml index 794d99d..d014f8a 100644 --- a/action.yml +++ b/action.yml @@ -39,6 +39,10 @@ inputs: description: "Line separated list of files to remove from upstream repository" required: false + upstream_copy: + description: "Line separated pair of source directory from upstream and destinations" + required: false + runs: using: "composite" steps: @@ -105,3 +109,15 @@ runs: for file in ${FILES}; do [[ -f "upstream/${file}" ]] && rm -v "upstream/${file}" || true done + + - name: Copy from upstream to chart + id: upstream_copy + if: ${{ inputs.upstream_copy_src != '' && inputs.upstream_copy_dst != ''}} + shell: bash + run: | + MAPPINGS=$(echo "${{ inputs.upstream_copy }}" | tr '\n' ' ') + for mapping in ${MAPPINGS}; do + SRC=$(echo "$mapping" | awk '{print $1}') + DST=$(echo "$mapping" | awk '{print $2}') + cp -Rv "upstream/${SRC}/*" "${DST}/" + done From bca17fc16598df862f9b67f63c721d0d1fd2e196 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Wed, 3 Jan 2024 17:57:02 +0100 Subject: [PATCH 02/10] fix(test): fix parameter name for copying --- .github/workflows/test-local-action.yaml | 2 +- action.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-local-action.yaml b/.github/workflows/test-local-action.yaml index ef5e866..5bd94fb 100644 --- a/.github/workflows/test-local-action.yaml +++ b/.github/workflows/test-local-action.yaml @@ -75,7 +75,7 @@ jobs: upstream_repo: sysdiglabs/kube-psp-advisor local_patch_dir: tests/sysdiglabs/kube-psp-advisor upstream_ref: master - upstream_copy_src: | + upstream_copy: | generator tests/kube-psp-advisor - name: Assert that files are copied id: test-copy diff --git a/action.yml b/action.yml index d014f8a..8d089e0 100644 --- a/action.yml +++ b/action.yml @@ -119,5 +119,6 @@ runs: for mapping in ${MAPPINGS}; do SRC=$(echo "$mapping" | awk '{print $1}') DST=$(echo "$mapping" | awk '{print $2}') + echo Copying from ${SRC} to ${DST} cp -Rv "upstream/${SRC}/*" "${DST}/" done From fe0df722e6dd921392d8202a62742f7e19539aa5 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Wed, 3 Jan 2024 17:58:06 +0100 Subject: [PATCH 03/10] Fix(action.yml): fix check on step --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8d089e0..330adc1 100644 --- a/action.yml +++ b/action.yml @@ -112,7 +112,7 @@ runs: - name: Copy from upstream to chart id: upstream_copy - if: ${{ inputs.upstream_copy_src != '' && inputs.upstream_copy_dst != ''}} + if: ${{ inputs.upstream_copy != '' }} shell: bash run: | MAPPINGS=$(echo "${{ inputs.upstream_copy }}" | tr '\n' ' ') From f6e850a96217f631b5b734ac46787293ff15f06a Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Wed, 3 Jan 2024 18:04:38 +0100 Subject: [PATCH 04/10] Fix(action.yml): Fix logic of copy --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 330adc1..115df35 100644 --- a/action.yml +++ b/action.yml @@ -115,10 +115,10 @@ runs: if: ${{ inputs.upstream_copy != '' }} shell: bash run: | - MAPPINGS=$(echo "${{ inputs.upstream_copy }}" | tr '\n' ' ') - for mapping in ${MAPPINGS}; do + MAPPINGS=$(echo "${{ inputs.upstream_copy }}") + echo "${MAPPINGS}" | while read mapping; do SRC=$(echo "$mapping" | awk '{print $1}') DST=$(echo "$mapping" | awk '{print $2}') echo Copying from ${SRC} to ${DST} - cp -Rv "upstream/${SRC}/*" "${DST}/" + cp -Rv upstream/${SRC}/* "${DST}/" done From 85c7fdf45ea18d598e96694534b2b6ffeab047e9 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Wed, 3 Jan 2024 18:05:50 +0100 Subject: [PATCH 05/10] fix(tests): fix logic test copy --- .github/workflows/test-local-action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-local-action.yaml b/.github/workflows/test-local-action.yaml index 5bd94fb..35100d6 100644 --- a/.github/workflows/test-local-action.yaml +++ b/.github/workflows/test-local-action.yaml @@ -76,11 +76,11 @@ jobs: local_patch_dir: tests/sysdiglabs/kube-psp-advisor upstream_ref: master upstream_copy: | - generator tests/kube-psp-advisor + generator tests/ - name: Assert that files are copied id: test-copy run: |- - [[ -f tests/kube-psp-advisor/generator.go ]] && [[ -f tests/kube-psp-advisor/generator_test.go ]] + [[ -f tests/generator.go ]] && [[ -f tests/generator_test.go ]] shell: bash print_results: From fa1d14d7bce0043e18c53ac7a87a56b0011d58de Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Thu, 4 Jan 2024 09:29:44 +0100 Subject: [PATCH 06/10] fix(action): now parameters are interpreted as is for the copy --- .github/workflows/test-local-action.yaml | 26 ++++++++++++------------ action.yml | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-local-action.yaml b/.github/workflows/test-local-action.yaml index 35100d6..ab2f7fc 100644 --- a/.github/workflows/test-local-action.yaml +++ b/.github/workflows/test-local-action.yaml @@ -40,6 +40,18 @@ jobs: tag_minor: ${{ steps.local-action.outputs.tag_minor }} tag_patch: ${{ steps.local-action.outputs.tag_patch }} + print_results: + runs-on: ubuntu-latest + name: Print test results + needs: [local_test_lasttag, local_test_fixed] + steps: + - run: | + echo "local_test_lasttag: ${{ needs.local_test_lasttag.outputs.used_tag }},${{ needs.local_test_lasttag.outputs.used_latest }}" + echo "local_test_fixed: ${{ needs.local_test_fixed.outputs.used_tag }},${{ needs.local_test_fixed.outputs.used_latest }}" + echo "semver_fixed: ${{ needs.local_test_fixed.outputs.tag_major }}, ${{ needs.local_test_fixed.outputs.tag_minor }}, ${{ needs.local_test_fixed.outputs.tag_patch }}" + echo "semver_lasttag: ${{ needs.local_test_lasttag.outputs.tag_major }}, ${{ needs.local_test_lasttag.outputs.tag_minor }}, ${{ needs.local_test_lasttag.outputs.tag_patch }}" + shell: bash + local_test_upstream_remove_files: runs-on: ubuntu-latest name: Test local action with upstream_remove_files set @@ -76,21 +88,9 @@ jobs: local_patch_dir: tests/sysdiglabs/kube-psp-advisor upstream_ref: master upstream_copy: | - generator tests/ + generator/* tests/ - name: Assert that files are copied id: test-copy run: |- [[ -f tests/generator.go ]] && [[ -f tests/generator_test.go ]] shell: bash - - print_results: - runs-on: ubuntu-latest - name: Print test results - needs: [local_test_lasttag, local_test_fixed] - steps: - - run: | - echo "local_test_lasttag: ${{ needs.local_test_lasttag.outputs.used_tag }},${{ needs.local_test_lasttag.outputs.used_latest }}" - echo "local_test_fixed: ${{ needs.local_test_fixed.outputs.used_tag }},${{ needs.local_test_fixed.outputs.used_latest }}" - echo "semver_fixed: ${{ needs.local_test_fixed.outputs.tag_major }}, ${{ needs.local_test_fixed.outputs.tag_minor }}, ${{ needs.local_test_fixed.outputs.tag_patch }}" - echo "semver_lasttag: ${{ needs.local_test_lasttag.outputs.tag_major }}, ${{ needs.local_test_lasttag.outputs.tag_minor }}, ${{ needs.local_test_lasttag.outputs.tag_patch }}" - shell: bash diff --git a/action.yml b/action.yml index 115df35..5ccdfaa 100644 --- a/action.yml +++ b/action.yml @@ -120,5 +120,5 @@ runs: SRC=$(echo "$mapping" | awk '{print $1}') DST=$(echo "$mapping" | awk '{print $2}') echo Copying from ${SRC} to ${DST} - cp -Rv upstream/${SRC}/* "${DST}/" + cp -Rv upstream/${SRC} "${DST}" done From 24ab06c552eaf2a3988edeeaf618f2460ebcd511 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Thu, 4 Jan 2024 09:53:02 +0100 Subject: [PATCH 07/10] chore(doc): add upstream copy documentation --- README.md | 31 +++++++++++++++++++++++++++---- action.yml | 2 +- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 403dffd..d813ec3 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ Checkout the ref (or latest) upstream version and apply one or more patch files ### Optional -- `upstream_ref`: The upstream ref, can be: branch, tag, sha, if not provided last semver tag will be grabbed automatically -- `upstream_tag_regex`: Regex to use while checking the last upstream versions -- `upstream_remove_files`: Line separated list of files to remove from upstream repository -- `upstream_copy`: Line separated pair of source directory from upstream and destinations +- `upstream_ref`: The upstream ref, can be: branch, tag, sha, if not provided last semver tag will be grabbed automatically. +- `upstream_tag_regex`: Regex to use while checking the last upstream versions. +- `upstream_remove_files`: Line separated list of files to remove from upstream repository. +- `upstream_copy`: Line separated pair of source directory from upstream and destinations. The fields are passed as is to the cp command. ## Outputs @@ -72,3 +72,26 @@ jobs: scripts/cluster-scanner/README.md scripts/cluster-scanner/generate_kubeconfig.sh ``` + +Perform all checks on pull requests and copy some files from the upstream repository to a custom location + +```yaml +name: Checkout and Patch + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + paths: + - 'containers/**' +jobs: + build: + runs-on: self-hosted + steps: + - uses: draios/infra-action-patch-upstream@v1 + with: + upstream_repo: sysdiglabs/charts + local_patch_dir: tests/sysdiglabs/charts + upstream_ref: master + upstream_copy: | + scripts/cluster-scanner/* k8s/ +``` diff --git a/action.yml b/action.yml index 5ccdfaa..8d69669 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ inputs: required: false upstream_copy: - description: "Line separated pair of source directory from upstream and destinations" + description: "Line separated pair of source directory from upstream and destinations. The fields are passed as is to the cp command" required: false runs: From 7afeac9782cab5bb23428ebe95879c40c6fc3902 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Thu, 4 Jan 2024 10:16:40 +0100 Subject: [PATCH 08/10] chore(pre-commit,doc): upgrade pre-commit hooks Fix README.md --- .pre-commit-config.yaml | 4 ++-- README.md | 28 +++------------------------- 2 files changed, 5 insertions(+), 27 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ed1357..7313b28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.4.0" + rev: "v4.5.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -11,7 +11,7 @@ repos: - id: trailing-whitespace args: ['--markdown-linebreak-ext=md,txt,gotmpl'] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.22.0" + rev: "0.27.3" hooks: - id: check-dependabot - id: check-github-actions diff --git a/README.md b/README.md index d813ec3..4fe1788 100644 --- a/README.md +++ b/README.md @@ -31,18 +31,10 @@ Checkout the ref (or latest) upstream version and apply one or more patch files Perform all checks on pull requests ```yaml -name: Checkout and Patch - -on: - pull_request: - types: [opened, edited, synchronize, reopened] - paths: - - 'containers/**' jobs: build: - runs-on: self-hosted steps: - - uses: draios/infra-action-patch-upstream@v1 + - uses: draios/infra-action-patch-upstream@v0.0.6 with: upstream_repo: sysdiglabs/charts local_patch_dir: tests/sysdiglabs/charts @@ -52,18 +44,11 @@ jobs: Perform all checks on pull requests and remove files from the upstream repository ```yaml -name: Checkout and Patch - -on: - pull_request: - types: [opened, edited, synchronize, reopened] - paths: - - 'containers/**' jobs: build: runs-on: self-hosted steps: - - uses: draios/infra-action-patch-upstream@v1 + - uses: draios/infra-action-patch-upstream@v0.0.6 with: upstream_repo: sysdiglabs/charts local_patch_dir: tests/sysdiglabs/charts @@ -76,18 +61,11 @@ jobs: Perform all checks on pull requests and copy some files from the upstream repository to a custom location ```yaml -name: Checkout and Patch - -on: - pull_request: - types: [opened, edited, synchronize, reopened] - paths: - - 'containers/**' jobs: build: runs-on: self-hosted steps: - - uses: draios/infra-action-patch-upstream@v1 + - uses: draios/infra-action-patch-upstream@v0.0.6 with: upstream_repo: sysdiglabs/charts local_patch_dir: tests/sysdiglabs/charts From f88ebe57a66268cc61bda655846f264ec64a98d3 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Thu, 4 Jan 2024 10:17:55 +0100 Subject: [PATCH 09/10] chore(README.md): change readme.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 4fe1788..9a45cf3 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ Perform all checks on pull requests and remove files from the upstream repositor ```yaml jobs: build: - runs-on: self-hosted steps: - uses: draios/infra-action-patch-upstream@v0.0.6 with: @@ -63,7 +62,6 @@ Perform all checks on pull requests and copy some files from the upstream reposi ```yaml jobs: build: - runs-on: self-hosted steps: - uses: draios/infra-action-patch-upstream@v0.0.6 with: From ec147874bb42e70e1261488f7233417ac38fbb99 Mon Sep 17 00:00:00 2001 From: Massimo Schembri Date: Thu, 4 Jan 2024 10:25:54 +0100 Subject: [PATCH 10/10] chore(README.md): change titles --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9a45cf3..3695e07 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Checkout the ref (or latest) upstream version and apply one or more patch files - `upstream_ref`: The upstream ref, can be: branch, tag, sha, if not provided last semver tag will be grabbed automatically. - `upstream_tag_regex`: Regex to use while checking the last upstream versions. - `upstream_remove_files`: Line separated list of files to remove from upstream repository. -- `upstream_copy`: Line separated pair of source directory from upstream and destinations. The fields are passed as is to the cp command. +- `upstream_copy`: Line separated pair of source directory from upstream repository and destinations. The fields are passed as is to the cp command. ## Outputs @@ -28,7 +28,7 @@ Checkout the ref (or latest) upstream version and apply one or more patch files ## Example workflow -Perform all checks on pull requests +Patch files from upstream repository ```yaml jobs: @@ -41,7 +41,7 @@ jobs: upstream_ref: master ``` -Perform all checks on pull requests and remove files from the upstream repository +Patch files from upstream repository and remove some not needed files ```yaml jobs: @@ -57,7 +57,7 @@ jobs: scripts/cluster-scanner/generate_kubeconfig.sh ``` -Perform all checks on pull requests and copy some files from the upstream repository to a custom location +Patch files from upstream repository and copy files to custom locations ```yaml jobs: