feat(agents): publish a packaged agent image to a registry #8989
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Security | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| types: [checks_requested] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| secrets-scan: | |
| name: Secrets Scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Skip merge queue scan | |
| if: ${{ github.event_name == 'merge_group' }} | |
| run: echo "Skipping secrets scan for merge queue" | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| if: ${{ github.event_name != 'merge_group' }} | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: TruffleHog OSS | |
| if: ${{ github.event_name != 'merge_group' }} | |
| id: trufflehog | |
| uses: trufflesecurity/trufflehog@37b77001d0174ebec2fcca2bd83ff83a6d45a3ab # v3.95.3 | |
| continue-on-error: true | |
| with: | |
| path: ./ | |
| version: 3.95.3 | |
| extra_args: --exclude-paths=.github/trufflehog-exclude.txt | |
| - name: Scan Results Status | |
| if: ${{ github.event_name != 'merge_group' && steps.trufflehog.outcome == 'failure' }} | |
| run: exit 1 | |
| codeql: | |
| name: CodeQL Analyze Codebase | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'python', 'javascript-typescript' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| languages: ${{matrix.language}} | |
| config-file: ./.github/codeql/codeql-config.yml | |
| dependency-caching: false | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| category: "/language:${{matrix.language}}" |