Skip to content

Bump anchore/sbom-action from 0.23.1 to 0.24.0 (#3002) #1214

Bump anchore/sbom-action from 0.23.1 to 0.24.0 (#3002)

Bump anchore/sbom-action from 0.23.1 to 0.24.0 (#3002) #1214

Workflow file for this run

name: code-ql
on:
push:
branches:
- main
- release/*
pull_request:
schedule:
- cron: '0 8 * * MON'
workflow_dispatch:
permissions: {}
jobs:
analysis:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'actions', 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
filter: 'tree:0'
persist-credentials: false
show-progress: false
- name: Initialize CodeQL
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
with:
build-mode: none
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
with:
category: '/language:${{ matrix.language }}'
code-ql:
if: ${{ !cancelled() }}
needs: [ analysis ]
runs-on: ubuntu-latest
steps:
- name: Report status
shell: bash
env:
SCAN_SUCCESS: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: |
if [ "${SCAN_SUCCESS}" == "true" ]
then
echo 'CodeQL analysis successful ✅'
else
echo '::error title=CodeQL::CodeQL analysis failed ❌'
exit 1
fi