Skip to content

Commit

Permalink
upgrade gha from v3 to v4 (#169)
Browse files Browse the repository at this point in the history
* upgrade to v4

* update build_image

* fix typo

---------

Co-authored-by: Sai Kumar Kotagiri <saikumarkotagiri9@gmail.com>
  • Loading branch information
jacobkagon and saikumar9 authored Jan 17, 2025
1 parent 4f5c06f commit d50233a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/.build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
--health-retries 5
steps:
# Check out repository
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Add git HEAD info to docker image
run: |
Expand All @@ -88,7 +88,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
BUNDLE_GITHUB__COM=x-access-token:${{ secrets.X12_TOKEN }}
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/sysdig-cli-scanner', '**/latest_version.txt', '**/db/main.db.meta.json', '**/scanner-cache/inlineScannerCache.db') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/security_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
run: |
bearer scan --quiet --config-file ./bearer.yml --format html --output bearer.html .
- name: upload bearer failure report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Security Reports
path: bearer.html
brakeman:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Cache Gems
uses: actions/cache@v1
Expand All @@ -67,15 +67,15 @@ jobs:
run: |
brakeman --format html --output brakeman.html
- name: upload brakeman failure report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Security Reports
path: brakeman.html
bundler-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Cache Gems
uses: actions/cache@v1
Expand All @@ -96,7 +96,7 @@ jobs:
run: |
bundler-audit --output=bundler_audit.txt
- name: upload bundler-audit failure report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Security Reports
Expand Down

0 comments on commit d50233a

Please sign in to comment.