Skip to content

Commit

Permalink
Bump action methods version
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 committed Sep 27, 2024
1 parent edf23fe commit 9253c3d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
# only needed when publishing to Github (ghcr.io)
- name: Log in to Github Container Repository
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
# will run as the user who triggered the action, using its token
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ matrix.images }}
tags: |
Expand All @@ -53,7 +53,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and Publish
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
file: ${{ matrix.dockerfile }}
context: .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
Expand All @@ -34,7 +34,7 @@ jobs:
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: trivy-branch
6 changes: 2 additions & 4 deletions .github/workflows/trivy-scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ name: Trivy - scheduled scan

on:
workflow_dispatch:
branches:
- master
schedule:
- cron: '30 8,12 * * *'

Expand All @@ -24,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ensure lowercase name
run: echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
Expand All @@ -38,7 +36,7 @@ jobs:
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: trivy-cron
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Hugo default output directory
/public

# more Hugo stuff
.hugo_build.lock

Expand Down

0 comments on commit 9253c3d

Please sign in to comment.