Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci pin deps #8720

Merged
merged 7 commits into from
Jun 23, 2022
Merged
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
68 changes: 33 additions & 35 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2.10.2
strongjz marked this conversation as resolved.
Show resolved Hide resolved
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,7 +49,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: Run Gosec Security Scanner
uses: securego/gosec@b99b5f7838e43a4104354ad92a6a1774302ee1f9 # master
Expand All @@ -67,20 +67,22 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: Set up Go 1.18
id: go
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3.2.0
with:
go-version: '1.18.2'

- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 #v2.0.0

- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@126d331dc69f4a1aa02452e374835e6a5d565613 # v1
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v2.0.0
with:
buildx-version: latest
qemu-version: latest
version: latest

- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
Expand Down Expand Up @@ -111,7 +113,7 @@ jobs:
| pigz > docker.tar.gz

- name: cache
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v2
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
strongjz marked this conversation as resolved.
Show resolved Hide resolved
with:
name: docker.tar.gz
path: docker.tar.gz
Expand All @@ -128,15 +130,15 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: Setup Go
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3.2.0
strongjz marked this conversation as resolved.
Show resolved Hide resolved
with:
go-version: '1.18.2'

- name: cache
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v2
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3
strongjz marked this conversation as resolved.
Show resolved Hide resolved
with:
name: docker.tar.gz

Expand All @@ -146,7 +148,7 @@ jobs:

- name: Run helm-docs
run: |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected]
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@e91c4c3337d3bf3fdad8de1763999a5c3325567f # v1.8.1
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md)
if [ ! -z "$DIFF" ]; then
Expand All @@ -169,7 +171,7 @@ jobs:

- name: Create Kubernetes cluster
id: kind
uses: engineerd/[email protected]
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.14.0
image: kindest/node:v1.21.12
Expand Down Expand Up @@ -209,7 +211,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: cache
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v2
Expand All @@ -218,7 +220,7 @@ jobs:

- name: Create Kubernetes ${{ matrix.k8s }} cluster
id: kind
uses: engineerd/[email protected]
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.14.0
config: test/e2e/kind.yaml
Expand All @@ -230,12 +232,10 @@ jobs:
failOnError: false

- name: Prepare cluster for testing
uses: azure/setup-helm@217bf70cbd2e930ba2e81ba7e1de2f7faecc42ba #v2.1
with:
version: 'v3.8.0'
id: local-path
run: |
kubectl version
echo
echo "installing helm 3..."
curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

- name: Load images from cache
run: |
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- name: cache
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
Expand All @@ -276,24 +276,22 @@ jobs:

- name: Create Kubernetes ${{ matrix.k8s }} cluster
id: kind
uses: engineerd/[email protected]
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.14.0
config: test/e2e/kind.yaml
image: kindest/node:${{ matrix.k8s }}

- uses: geekyeggo/delete-artifact@v1
- uses: geekyeggo/delete-artifact@a6ab43859c960a8b74cbc6291f362c7fb51829ba
with:
name: docker.tar.gz
failOnError: false

- name: Prepare cluster for testing
uses: azure/setup-helm@217bf70cbd2e930ba2e81ba7e1de2f7faecc42ba #v2.1
with:
version: 'v3.8.0'
id: local-path
run: |
kubectl version
echo
echo "installing helm 3..."
curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

- name: Load images from cache
run: |
Expand All @@ -319,9 +317,9 @@ jobs:
PLATFORMS: linux/amd64,linux/arm64
steps:
- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2.10.2
id: filter-images
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -385,9 +383,9 @@ jobs:
PLATFORMS: linux/amd64
steps:
- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2.10.2
id: filter-images
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -398,15 +396,15 @@ jobs:
- name: Create Kubernetes cluster
id: kind
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
uses: engineerd/[email protected]
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.14.0
image: kindest/node:v1.21.12

- name: Set up Go 1.18
id: go
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v3.2.0
with:
go-version: '1.18.2'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/depreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@1c59cdf2a9c7f29c90e8da32237eb04b81bad9f0 #v2.0.2
9 changes: 6 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:

changes:
Expand All @@ -21,9 +24,9 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2

- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2.10.2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -46,7 +49,7 @@ jobs:
steps:

- name: Checkout master
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2

- name: Deploy
uses: ./.github/actions/mkdocs
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
- legacy

permissions:
contents: read

jobs:

changes:
Expand All @@ -22,9 +25,9 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2

- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2
- uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721 # v2.10.2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,7 +52,7 @@ jobs:
steps:

- name: Checkout master
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
fetch-depth: 0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/perftest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
tags:
description: 'K6 Load Test'

permissions:
contents: read

jobs:
k6_test_run:
runs-on: ubuntu-latest
Expand Down
Loading