Skip to content

Commit

Permalink
update github actions to use latest Node.js version
Browse files Browse the repository at this point in the history
Node.js 12 actions are deprecated in Github Actions, the following
updated actions were using that version.

Signed-off-by: Ankur Kothiwal <ankur.kothiwal@accuknox.com>
  • Loading branch information
Ankurk99 committed Oct 12, 2022
1 parent ea3c3dd commit 128c643
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-controllers-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
hostpolicy: ${{ steps.filter.outputs.hostpolicy }}
policy: ${{ steps.filter.outputs.policy }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
Expand All @@ -45,10 +45,10 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand All @@ -70,10 +70,10 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand All @@ -95,10 +95,10 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
run: ./tests/test-scenarios-github.sh ${{ steps.vars.outputs.tag }}

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: main

Expand All @@ -96,7 +96,7 @@ jobs:
- name: Login to Docker Hub
if: steps.match.outputs.tag == 'true'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
Expand All @@ -29,7 +29,7 @@ jobs:
docker image tag kubearmor/kubearmor-init:latest kubearmor/kubearmor-init:stable
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-systemd-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
goreleaser:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-test-controllers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
hostpolicy: ${{ steps.filter.outputs.hostpolicy }}
policy: ${{ steps.filter.outputs.policy }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
Expand All @@ -49,7 +49,7 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build annotation controller
run: make docker-build TAG=latest
Expand All @@ -68,7 +68,7 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build hostpolicy controller
run: make docker-build TAG=latest
Expand All @@ -87,7 +87,7 @@ jobs:
with:
go-version: v1.18

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build policy controller
run: make docker-build TAG=latest
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-ginkgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
os: [ubuntu-20.04]
runtime: ["docker", "containerd", "crio"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
go-fmt:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
Expand All @@ -23,7 +23,7 @@ jobs:
go-lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
Expand All @@ -37,7 +37,7 @@ jobs:
go-lint-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
Expand All @@ -51,7 +51,7 @@ jobs:
go-sec:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
Expand All @@ -64,7 +64,7 @@ jobs:
license:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Check License Header
uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
os: [ubuntu-20.04]
runtime: ["docker", "containerd", "crio"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Test KubeArmor in Runtime
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Test KubeArmor in Systemd Mode
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Expand Down

0 comments on commit 128c643

Please sign in to comment.