[releng release-5.8.15] gromit: sync templates - #8575
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
2ddd947 to
e93c900
Compare
| # (see "Save Go build cache"). PRs read the cache but never write it, so | ||
| # they don't re-upload the multi-GB cache each run, and the store isn't | ||
| # churned. master/tags keep the cache warm for PRs to restore from. | ||
| - uses: WarpBuilds/cache/restore@f643a1ba29942d56621d07fc2d4284c7219868ad # v1 |
| # causing a perpetual re-save + cache eviction. Skip if we already had an | ||
| # exact hit (nothing new to store). | ||
| - name: Save Go build cache | ||
| uses: WarpBuilds/cache/save@f643a1ba29942d56621d07fc2d4284c7219868ad # v1 |
| upgrade-tests: | ||
| needs: | ||
| - test-controller-distros | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| arch: | ||
| - amd64 | ||
| - arm64 | ||
| distro: ${{ fromJson(needs.test-controller-distros.outputs.deb) }} | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
| with: | ||
| fetch-depth: 1 | ||
| sparse-checkout: ci | ||
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | ||
| with: | ||
| name: deb | ||
| - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 | ||
| - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 | ||
| - name: generate dockerfile | ||
| run: | | ||
| echo 'FROM ${{ matrix.distro }} | ||
| ARG TARGETARCH | ||
| COPY tyk-gateway*_${TARGETARCH}.deb /tyk-gateway.deb | ||
| RUN apt-get update && apt-get install -y curl | ||
| # TODO(security): curl|bash - consider fetching script and verifying checksum before execution | ||
| RUN curl -fsSL https://packagecloud.io/install/repositories/tyk/tyk-gateway/script.deb.sh | bash || echo "Repository setup failed, but continuing" # SECURITY: accepted risk, see TODO above | ||
| RUN apt-get install -y tyk-gateway=3.0.8 || echo "Previous version not found, testing fresh install" | ||
| RUN dpkg -i /tyk-gateway.deb | ||
|
|
||
| RUN /opt/tyk-gateway/install/setup.sh --listenport=8080 --redishost=localhost --redisport=6379 --domain="" | ||
| COPY ci/tests/api-functionality/data/api.json /opt/tyk-gateway/apps/ | ||
| CMD ["/opt/tyk-gateway/tyk", "--conf", "/opt/tyk-gateway/tyk.conf"] | ||
| ' | tee Dockerfile | ||
| - name: install on ${{ matrix.distro }} | ||
| uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6 | ||
| with: | ||
| context: "." | ||
| platforms: linux/${{ matrix.arch }} | ||
| build-args: | | ||
| RHELARCH=${{ startsWith(matrix.arch, 'arm64') && 'aarch64' || 'x86_64' }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| file: Dockerfile | ||
| push: false | ||
| tags: test-${{ matrix.distro }}-${{ matrix.arch }} | ||
| load: true | ||
| - name: Test the built container image with api functionality test. | ||
| run: | | ||
| docker run -d -p8080:8080 --name=test --platform linux/${{ matrix.arch }} --network ${{ job.container.network }} --rm test-${{ matrix.distro }}-${{ matrix.arch }} | ||
| sleep 2 | ||
| ./ci/tests/api-functionality/api_test.sh | ||
| sleep 2 | ||
| docker stop test || true | ||
| upgrade-rpm: | ||
| services: | ||
| httpbin.org: | ||
| image: kennethreitz/httpbin | ||
| runs-on: ${{ vars.DEFAULT_RUNNER }} | ||
| needs: | ||
| - test-controller-distros | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| arch: | ||
| - amd64 | ||
| - arm64 | ||
| distro: ${{ fromJson(needs.test-controller-distros.outputs.rpm) }} | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
| with: | ||
| fetch-depth: 1 | ||
| sparse-checkout: ci | ||
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | ||
| with: | ||
| name: rpm | ||
| - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 | ||
| - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 | ||
| - name: generate dockerfile | ||
| run: | | ||
| echo 'FROM ${{ matrix.distro }} | ||
| ARG RHELARCH | ||
| COPY tyk-gateway*.${RHELARCH}.rpm /tyk-gateway.rpm | ||
| RUN command -v curl || yum install -y curl | ||
| RUN command -v useradd || yum install -y shadow-utils | ||
| # TODO(security): curl|bash - consider fetching script and verifying checksum before execution | ||
| RUN curl -fsSL https://packagecloud.io/install/repositories/tyk/tyk-gateway/script.rpm.sh | bash || echo "Repository setup failed, but continuing" # SECURITY: accepted risk, see TODO above | ||
| RUN yum install -y tyk-gateway-3.0.8-1 || echo "Previous version not found, testing fresh install" | ||
| RUN curl https://keyserver.tyk.io/tyk.io.rpm.signing.key.2020 -o tyk-gateway.key && rpm --import tyk-gateway.key | ||
| RUN rpm --checksig /tyk-gateway.rpm | ||
| RUN rpm -Uvh --force /tyk-gateway.rpm | ||
|
|
||
| RUN /opt/tyk-gateway/install/setup.sh --listenport=8080 --redishost=localhost --redisport=6379 --domain="" | ||
| COPY ci/tests/api-functionality/data/api.json /opt/tyk-gateway/apps/ | ||
| CMD ["/opt/tyk-gateway/tyk", "--conf", "/opt/tyk-gateway/tyk.conf"] | ||
| ' | tee Dockerfile | ||
| - name: install on ${{ matrix.distro }} | ||
| uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6 | ||
| with: | ||
| context: "." | ||
| platforms: linux/${{ matrix.arch }} | ||
| build-args: | | ||
| RHELARCH=${{ startsWith(matrix.arch, 'arm64') && 'aarch64' || 'x86_64' }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| file: Dockerfile | ||
| push: false | ||
| tags: test-${{ matrix.distro }}-${{ matrix.arch }} | ||
| load: true | ||
| - name: Test the built container image with api functionality test. | ||
| run: "docker run -d -p8080:8080 --name=test --platform linux/${{ matrix.arch }} --network ${{ job.container.network }} --rm test-${{ matrix.distro }}-${{ matrix.arch }}\nsleep 2\n./ci/tests/api-functionality/api_test.sh\nsleep 2\ndocker stop test || true \n" | ||
| uses: TykTechnologies/github-actions/.github/workflows/upgrade-tests.yml@production | ||
| with: | ||
| deb: ${{ needs.test-controller-distros.outputs.deb }} | ||
| rpm: ${{ needs.test-controller-distros.outputs.rpm }} | ||
| rpm_amd64: ${{ needs.test-controller-distros.outputs.rpm_amd64 }} | ||
| package_name: tyk-gateway | ||
| upgrade_repo: tyk-gateway | ||
| runs_on: ${{ vars.DEFAULT_RUNNER }} | ||
| run_gateway_tests: true |
zizmor findings
Full details are in the workflow run. |
d5ddc26 to
6e961d0
Compare
961dea3 to
e36e49e
Compare
e36e49e to
20de62f
Compare
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
1 similar comment
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
|
20de62f to
a89f581
Compare
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
a89f581 to
09a05fd
Compare
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
1 similar comment
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
09a05fd to
db8b8a9
Compare
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
1 similar comment
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
db8b8a9 to
fd8569e
Compare
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
1 similar comment
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |


Auto-generated from gromit templates by policy sync.