Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/drift-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by: gromit policy
# This file is managed by gromit, do not edit by hand.
# The check logic lives in TykTechnologies/github-actions.
name: Drift Check
on:
pull_request:
jobs:
drift:

Check warning on line 8 in .github/workflows/drift-check.yml

View workflow job for this annotation

GitHub Actions / zizmor / scan

excessive-permissions

drift-check.yml:8: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 8 in .github/workflows/drift-check.yml

View workflow job for this annotation

GitHub Actions / zizmor / scan

excessive-permissions

drift-check.yml:8: overly broad permissions: default permissions used due to no permissions: block
uses: TykTechnologies/github-actions/.github/workflows/drift-check.yml@production
480 changes: 311 additions & 169 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by: gromit policy
# This file is managed by gromit, do not edit by hand.
name: zizmor
on:
pull_request:
push:
branches:
- release-1.14
permissions: {}
jobs:
zizmor:
uses: TykTechnologies/github-actions/.github/workflows/zizmor.yml@production

Check failure on line 12 in .github/workflows/zizmor.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=TykTechnologies_tyk-pump&issues=AZ_s98g-tNssJQ-uhW6_&open=AZ_s98g-tNssJQ-uhW6_&pullRequest=1073
permissions:
security-events: write
contents: read
actions: read
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
10 changes: 10 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated by: gromit policy
# This file is managed by gromit, do not edit by hand.
# zizmor configuration (https://docs.zizmor.sh/configuration/)
rules:
unpinned-uses:
config:
policies:
# First-party refs use mutable tags (production/main) by design.
"TykTechnologies/*": ref-pin
"*": hash-pin
2 changes: 1 addition & 1 deletion ci/Dockerfile.distroless
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND=noninteractive
# The _ after the pkg name is to match tyk-gateway strictly and not tyk-gateway-fips (for example)
COPY ${BUILD_PACKAGE_NAME}_*${TARGETARCH}.deb /
ARG NONROOT_CHOWN=false
RUN dpkg -i /${BUILD_PACKAGE_NAME}_*${TARGETARCH}.deb && rm /*.deb \
RUN dpkg -i /"${BUILD_PACKAGE_NAME}"_*"${TARGETARCH}".deb && rm /*.deb \
&& chmod -R a+rX /opt/tyk-pump/ \
&& if [ "$NONROOT_CHOWN" = "true" ]; then chown -R 65532:65532 /opt/tyk-pump/; fi

Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile.std
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN rm -fv /usr/bin/passwd /usr/sbin/adduser || true

# Comment this to test in dev
COPY dist/${BUILD_PACKAGE_NAME}_*_${TARGETARCH}.deb /
RUN dpkg -i /${BUILD_PACKAGE_NAME}_*_${TARGETARCH}.deb && find / -maxdepth 1 -name "*.deb" -delete
RUN dpkg -i /"${BUILD_PACKAGE_NAME}"_*_"${TARGETARCH}".deb && find / -maxdepth 1 -name "*.deb" -delete

# Clean up caches, unwanted .a and .o files
RUN rm -rf /root/.cache \
Expand Down
Loading