Skip to content

init sec scanning

init sec scanning #10

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:
tags: local/palworld-server-docker:security
push: false
load: true
- name: Scan for vulnerabilities
id: scan
uses: anchore/scan-action@v3
with:
image: "local/palworld-server-docker:security"
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 }}