Skip to content

Commit

Permalink
Add Trivy scan and update GitHub Actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
77alf77 committed Aug 2, 2024
1 parent f20d25c commit 4a2a3fa
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,16 @@ on:

jobs:
build:
name: Build and Analyze
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v3
- uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
distribution: 'adopt-openjdk'
java-version: '11'

- name: Build with Gradle
run: ./gradlew build

- name: Set up CodeQL
uses: github/codeql-action/setup@v3
with:
languages: java

- name: Analyze code with CodeQL
uses: github/codeql-action/analyze@v3
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
registry: ghcr.io
repository: netology-code/necommerce-backend
tag_with_ref: true

0 comments on commit 4a2a3fa

Please sign in to comment.