Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/reusable-container-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ jobs:
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
env:
IMAGE_REF: ${{ inputs.image-path }}/${{ inputs.image-name }}:${{ inputs.image-tag }}
GITHUB_TOKEN: ${{ github.token }}
IMAGE_REF: ${{ inputs.image-path }}/${{ inputs.image-name }}:${{ inputs.image-tag }}
25 changes: 22 additions & 3 deletions .github/workflows/reusable-dotnet-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ on:
sonar-token:
description: Sonar token for login
required: false
additional-vars:
description: "Additional variables"
required: false

jobs:
dotnet-quality:
Expand All @@ -96,9 +99,24 @@ jobs:
steps:
- name: Set additional variables
shell: bash
env:
EXTRA_VARS: ${{ inputs.extra-vars }}
run: |
if [[ -n "${{ inputs.extra-vars }}" ]]; then
echo "${{ inputs.extra-vars }}" >> "$GITHUB_ENV"
if [[ -n "$EXTRA_VARS" ]]; then
echo "$EXTRA_VARS" >> "$GITHUB_ENV"
fi
- name: Set additional secrets
shell: bash
env:
ADDITIONAL_VARS: ${{ secrets.additional-vars }}
run: |
if [[ -n "$ADDITIONAL_VARS" ]]; then
echo "$ADDITIONAL_VARS" | while IFS='=' read -r key val; do
if [[ -n "$val" ]]; then
echo "::add-mask::$val"
fi
done
echo "$ADDITIONAL_VARS" >> "$GITHUB_ENV"
fi
- name: Disable git autocrlf
if: ${{ inputs.operating-system == 'windows-latest' }}
Expand Down Expand Up @@ -152,6 +170,7 @@ jobs:
- name: Create FOSSA report file
if: ${{ inputs.fossa-enabled && steps.fossa.outputs.report != '' }}
run: echo '${{ steps.fossa.outputs.report }}' > report/fossa.html
continue-on-error: true
- name: Generate SBOM with Syft
uses: anchore/sbom-action@v0
# with:
Expand All @@ -160,6 +179,7 @@ jobs:
# output-file: sbom.json
# upload-artifact: true # Auto-upload to workflow artifacts
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
with:
name: dotnet-test-results
Expand All @@ -173,5 +193,4 @@ jobs:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
# https://docs.github.com/en/actions/reference/workflows-and-actions/contexts
GITHUB_TOKEN: ${{ github.token }}
Loading