tests pipeline run attempt
This commit is contained in:
45
.gitea/workflows-archived/crypto-compliance.yml
Normal file
45
.gitea/workflows-archived/crypto-compliance.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Crypto Compliance Audit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/**/*.cs'
|
||||
- 'etc/crypto-plugins-manifest.json'
|
||||
- 'scripts/audit-crypto-usage.ps1'
|
||||
- '.gitea/workflows/crypto-compliance.yml'
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'src/**/*.cs'
|
||||
- 'etc/crypto-plugins-manifest.json'
|
||||
- 'scripts/audit-crypto-usage.ps1'
|
||||
- '.gitea/workflows/crypto-compliance.yml'
|
||||
|
||||
jobs:
|
||||
crypto-audit:
|
||||
runs-on: ${{ vars.LINUX_RUNNER_LABEL || 'ubuntu-latest' }}
|
||||
env:
|
||||
DOTNET_NOLOGO: 1
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
TZ: UTC
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run crypto usage audit
|
||||
shell: pwsh
|
||||
run: |
|
||||
Write-Host "Running crypto compliance audit..."
|
||||
./scripts/audit-crypto-usage.ps1 -RootPath "$PWD" -FailOnViolations $true -Verbose
|
||||
|
||||
- name: Upload audit report on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: crypto-compliance-violations
|
||||
path: |
|
||||
scripts/audit-crypto-usage.ps1
|
||||
retention-days: 30
|
||||
|
||||
Reference in New Issue
Block a user