Skip to content

init sec scanning

init sec scanning #9

Workflow file for this run

---
name: Security
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
jobs:
security-scan:
runs-on: ubuntu-latest
name: Container - Scan
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
load: true
tags: thijsvanloef/palworld-server-docker:security
- name: Scan for vulnerabilities
id: scan
uses: anchore/scan-action@v3
with:
image: "thijsvanloef/palworld-server-docker:latest"
fail-build: false
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}
- name: upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}