Skip to content

Commit

Permalink
Update GitHub Action Versions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 22, 2024
1 parent 2e02eb3 commit 9e69adb
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 60 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-docker-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
- uses: actions/checkout@v4.2.2
- uses: docker/setup-buildx-action@v3.8.0
- uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: 'Build tykio/ci-tools:${{ matrix.tag }}'
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6.10.0
with:
push: ${{ github.ref_name == 'main' || github.event_name == 'workflow_dispatch' }}
pull: true
Expand All @@ -65,7 +65,7 @@ jobs:
- run: docker image ls

- name: 'Extract tykio/ci-tools:${{ matrix.tag }}'
uses: shrink/actions-docker-extract@v3
uses: shrink/actions-docker-extract@v3.0.1
with:
image: tykio/ci-tools:${{ matrix.tag }}
path: /usr/local/bin/.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: arduino/setup-task@v1
- uses: actions/checkout@v4.2.2
- uses: arduino/setup-task@v2.0.0
with:
version: 3

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-update-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3.1.0
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: ${{ inputs.comment-author }}
body-includes: ${{ inputs.body-includes }}

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4.0.0
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/godoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ jobs:
token: ${{ secrets.ORG_GH_TOKEN }}

- name: Checkout exp
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
fetch-depth: 1
repository: TykTechnologies/exp
ref: main
path: exp

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5.2.0
with:
go-version: ${{ inputs.go-version }}

- name: Install Task
uses: arduino/setup-task@v1
uses: arduino/setup-task@v2.0.0
with:
version: 3

Expand Down Expand Up @@ -77,15 +77,15 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
- name: Find Comment
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3.1.0
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: API Changes

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4.0.0
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git - checkout master
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
ref: ${{ inputs.main_branch }}
fetch-depth: 1
- name: Git - checkout current ref
uses: actions/checkout@v3
- uses: actions/cache@v3
uses: actions/checkout@v4.2.2
- uses: actions/cache@v4.2.0
with:
# In order:
# * Module download cache
Expand All @@ -43,7 +43,7 @@ jobs:
curl 'https://raw.githubusercontent.com/TykTechnologies/github-actions/main/.github/workflows/.golangci.tmpl.yaml' -o .golangci.yaml
- name: Render template
id: render_template
uses: chuhlomin/render-template@v1.7
uses: chuhlomin/render-template@v1.10
with:
template: .golangci.yaml
result_path: .golangci.yaml
Expand All @@ -68,7 +68,7 @@ jobs:
git checkout $ref
fi
cp /tmp/.golangci.yaml .golangci.yaml
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5.2.0
with:
go-version: ${{ inputs.go }}
- name: Fetch modules
Expand All @@ -86,13 +86,13 @@ jobs:
run: |
$(go env GOPATH)/bin/golangci-lint run --verbose --out-format 'checkstyle:golangci_lint.xml' --timeout=300s --new=false --new-from-rev= ./...
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.5.0
if: ${{ always() }}
with:
name: golangci-report
path: "*xml"

- uses: reviewdog/action-setup@v1
- uses: reviewdog/action-setup@v1.3.0
if: ${{ always() }}
with:
reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z]
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/gotest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ jobs:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5.2.0
with:
go-version: ${{ inputs.go }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4.2.2

- name: Start Redis
if: ${{ inputs.redis != '' }}
uses: supercharge/redis-github-action@1.2.0
uses: supercharge/redis-github-action@1.8.0
with:
redis-version: '${{ inputs.redis }}'

- name: Start MongoDB
if: ${{ inputs.mongo != '' }}
uses: supercharge/mongodb-github-action@1.2.0
uses: supercharge/mongodb-github-action@1.11.0
with:
mongodb-version: '${{ inputs.mongo }}'

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down Expand Up @@ -67,18 +67,18 @@ jobs:
gotestsum --junitfile ${coveragefile}.xml --raw-command go test ${OPTS} --json -timeout 15m -coverprofile=${coveragefile}.cov ${pkg} ${tags}
done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.5.0
with:
name: coverage
path: "*cov"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.5.0
if: ${{ always() }}
with:
name: junit
path: "*xml"
- name: Github report view
if: ${{ always() }}
uses: phoenix-actions/test-reporting@v8
uses: phoenix-actions/test-reporting@v15
with:
name: Unit Test Results
path: "*.xml"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0

- name: Govulncheck scan
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nancy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2

- name: Set up Go 1.x in order to write go.list file
uses: actions/setup-go@v3
uses: actions/setup-go@v5.2.0
with:
go-version: 1.17

Expand All @@ -36,6 +36,6 @@ jobs:
working-directory: ./${{ inputs.dir }}

- name: Nancy scan
uses: sonatype-nexus-community/nancy-github-action@main
uses: sonatype-nexus-community/nancy-github-action@v1.0.2
with:
goListFile: ${{ inputs.dir }}/go.list
2 changes: 1 addition & 1 deletion .github/workflows/owasp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: OWASP Zap
uses: zaproxy/action-full-scan@v0.4.0
uses: zaproxy/action-full-scan@v0.12.0
with:
target: ${{ inputs.target }}
cmd_options: '-a'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
uses: Codium-ai/pr-agent@v0.25
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/release-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Check for release command
id: check_command
uses: actions/github-script@v6
uses: actions/github-script@v7.0.1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Checkout repository
if: steps.check_command.outputs.release_valid == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0

Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Comment on PR
if: steps.check_command.outputs.release_valid == 'true' && always()
uses: actions/github-script@v6
uses: actions/github-script@v7.0.1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/sbom-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
# Make sure we have some code to diff.
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.2.2
with:
fetch-depth: 50

Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
if: contains(github.ref, 'release-') || contains(github.ref, 'master') || contains(github.base_ref, 'release-') || contains(github.base_ref, 'master') || needs.changedfiles.outputs.go || needs.changedfiles.outputs.npm || needs.changedfiles.outputs.ci || needs.changedfiles.outputs.docker || needs.changedfiles.outputs.github
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
fetch-depth: 1
token: ${{ secrets.ORG_GH_TOKEN }}
submodules: true

- name: Configure AWS credentials for use
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4.0.2
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
Expand All @@ -85,18 +85,18 @@ jobs:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2.0.1

- name: Generate Source code SBOM
uses: aquasecurity/trivy-action@0.20.0
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: 'fs'
format: 'cyclonedx'
output: 'source.sbom.json'
image-ref: '.'

- name: Generate Docker SBOM
uses: aquasecurity/trivy-action@0.20.0
uses: aquasecurity/trivy-action@0.29.0
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
Expand All @@ -106,7 +106,7 @@ jobs:
image-ref: '${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name}}:sha-${{ github.sha }}'

- name: Generate Docker SBOM
uses: aquasecurity/trivy-action@0.20.0
uses: aquasecurity/trivy-action@0.29.0
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
# Make sure we have some code to diff.
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.2.2
with:
fetch-depth: 50

Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
if: contains(github.ref, 'release-') || contains(github.ref, 'master') || contains(github.base_ref, 'release-') || contains(github.base_ref, 'master') || needs.changedfiles.outputs.go || needs.changedfiles.outputs.npm || needs.changedfiles.outputs.ci || needs.changedfiles.outputs.docker || needs.changedfiles.outputs.github
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
with:
fetch-depth: 1
token: ${{ secrets.ORG_GH_TOKEN }}
submodules: true

- name: Configure AWS credentials for use
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4.0.2
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
Expand All @@ -85,18 +85,18 @@ jobs:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2.0.1

- name: Generate Source code SBOM
uses: aquasecurity/trivy-action@0.16.1
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: 'fs'
format: 'cyclonedx'
output: 'source.sbom.json'
image-ref: '.'

- name: Generate Docker SBOM
uses: aquasecurity/trivy-action@0.16.1
uses: aquasecurity/trivy-action@0.29.0
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE == null
Expand All @@ -106,7 +106,7 @@ jobs:
image-ref: '${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name}}:sha-${{ github.sha }}'

- name: Generate Docker SBOM
uses: aquasecurity/trivy-action@0.16.1
uses: aquasecurity/trivy-action@0.29.0
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
if: env.DOCKER_IMAGE
Expand Down
Loading

0 comments on commit 9e69adb

Please sign in to comment.