Skip to content

Bump FluentAssertions from 6.12.1 to 6.12.2 #51

Bump FluentAssertions from 6.12.1 to 6.12.2

Bump FluentAssertions from 6.12.1 to 6.12.2 #51

Workflow file for this run

name: scan
on:
pull_request:
branches:
- master
paths:
- "**/*.cs"
- "**/*.csproj"
- "**/*.props"
- "Dockerfile"
- ".github/workflows/scan.yml"
workflow_call:
inputs:
severities:
description: "Comma-separated list of severities to scan for: critical, high, medium, low, unspecified"
required: true
type: string
default: critical,high
package-types:
description: "Comma-separated list of package types to scan for: e.g. apk, nuget or empty for all"
required: true
type: string
default: ""
workflow_dispatch:
inputs:
severities:
description: "Comma-separated list of severities to scan for: critical, high, medium, low, unspecified"
required: true
type: string
default: critical,high
package-types:
description: "Comma-separated list of package types to scan for: e.g. apk, nuget or empty for all"
required: false
type: string
default: "nuget"
jobs:
determine-package-type:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
outputs:
package-types: ${{ steps.set-output.outputs.package-types }}
steps:
- uses: actions/checkout@v4
- name: Determine Package Types
id: set-output
run: |
package_types=""
PR_FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only)
echo "Changed files: $PR_FILES"
if echo "$PR_FILES" | grep -q 'Dockerfile'; then
package_types=""
elif echo "$PR_FILES" | grep -qE '\.(cs|csproj)$'; then
package_types="nuget"
fi
echo "package-types=${package_types}" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
scan:
runs-on: ubuntu-latest
needs: determine-package-type
if: always()
permissions:
pull-requests: write
env:
IMAGE_TAG: bitcoin-web-api:latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true
- name: Build
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
pull: false
no-cache: false
tags: ${{ env.IMAGE_TAG }}
env:
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
- name: Scan
uses: docker/scout-action@v1
with:
command: cves,recommendations
image: local://${{ env.IMAGE_TAG }}
only-severities: ${{ inputs.severities || 'critical,high' }}
only-package-types: ${{ needs.determine-package-type.outputs.package-types || inputs.package-types }}
only-fixed: true
summary: true
format: json
exit-code: true