Skip to content

Commit

Permalink
github actions and sbom update
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Affinito <[email protected]>
  • Loading branch information
tuxerrante committed Jul 17, 2024
1 parent 068170d commit 8a0b858
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ jobs:

steps:
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Will create and boot a builder that can be used in the build-push action.
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3.4.0

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.1.1
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -55,7 +55,7 @@ jobs:
# Run the build and outputs a test coverage file
- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6.4.0
with:
file: Dockerfile
push: false
Expand All @@ -65,7 +65,7 @@ jobs:
outputs: |
type=local,dest=.
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
Expand All @@ -76,7 +76,7 @@ jobs:
# since the context is based on the Git reference. Use the Path context to remove this restriction.
# https://github.com/marketplace/actions/build-and-push-docker-images#git-context
- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6.4.0
with:
file: Dockerfile
push: true
Expand All @@ -88,7 +88,7 @@ jobs:
needs: ['build-app']
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7

# Security scanner
# https://github.com/aquasecurity/trivy-action
Expand All @@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

Expand All @@ -125,15 +125,15 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.2.0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.1.1
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.6.1

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -147,7 +147,7 @@ jobs:
run: ct lint --config ct.yaml --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
uses: helm/kind-action@v1.4.0
uses: helm/kind-action@v1.10.0
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
Expand All @@ -159,7 +159,7 @@ jobs:
cat charts/kapparmor/values.yaml
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ env.GITHUB_TOKEN }}"
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
Expand All @@ -43,7 +43,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -56,6 +56,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.22.5
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6.0.1
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
Expand Down
2 changes: 1 addition & 1 deletion sbom.spdx.json

Large diffs are not rendered by default.

0 comments on commit 8a0b858

Please sign in to comment.