|
6 | 6 | paths: |
7 | 7 | - pyproject.toml |
8 | 8 | - Dockerfile |
9 | | - - '*.py' |
| 9 | + - "*.py" |
10 | 10 | - tests/** |
11 | 11 | - tools/** |
12 | 12 | - utils/** |
13 | 13 | workflow_call: |
14 | 14 | workflow_dispatch: |
15 | 15 |
|
16 | 16 | concurrency: |
17 | | - group: 'tests-${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' |
| 17 | + group: "tests-${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" |
18 | 18 | cancel-in-progress: true |
19 | 19 |
|
20 | 20 | jobs: |
|
57 | 57 | uses: actions/checkout@v4 |
58 | 58 | with: |
59 | 59 | ref: ${{ github.sha }} # required for better experience using pre-releases |
60 | | - fetch-depth: '0' # Required due to the way Git works, without it this action won't be able to find any or the correct tags |
| 60 | + fetch-depth: "0" # Required due to the way Git works, without it this action won't be able to find any or the correct tags |
61 | 61 |
|
62 | 62 | - name: Extract current version |
63 | 63 | id: pyproject_version |
|
78 | 78 | env: |
79 | 79 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
80 | 80 | DEFAULT_BUMP: "patch" |
81 | | - TAG_CONTEXT: 'repo' |
| 81 | + TAG_CONTEXT: "repo" |
82 | 82 | WITH_V: true |
83 | 83 | DRY_RUN: true |
84 | 84 |
|
|
99 | 99 | New Tag version: **${{ steps.semantic_release.outputs.tag }}** |
100 | 100 | The version is up-to-date." >> $GITHUB_STEP_SUMMARY |
101 | 101 | fi |
| 102 | +
|
| 103 | + test_build: |
| 104 | + name: Test Build |
| 105 | + runs-on: ubuntu-latest |
| 106 | + needs: test |
| 107 | + permissions: |
| 108 | + contents: read # required for actions/checkout |
| 109 | + steps: |
| 110 | + - name: Check out the repo |
| 111 | + uses: actions/checkout@v4 |
| 112 | + with: |
| 113 | + ref: ${{ github.sha }} # required for better experience using pre-releases |
| 114 | + fetch-depth: "0" # Required due to the way Git works, without it this action won't be able to find any or the correct tags |
| 115 | + |
| 116 | + - name: Log in to GitHub Container Registry |
| 117 | + uses: docker/login-action@v3 |
| 118 | + with: |
| 119 | + registry: ghcr.io |
| 120 | + username: ${{ github.actor }} |
| 121 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 122 | + |
| 123 | + - name: Build Docker image |
| 124 | + id: build-to-test |
| 125 | + uses: docker/build-push-action@v5 |
| 126 | + with: |
| 127 | + context: . |
| 128 | + load: true |
| 129 | + push: false |
| 130 | + tags: | |
| 131 | + ghcr.io/sysdiglabs/sysdig-mcp-server:test |
| 132 | +
|
| 133 | + - name: Scan Docker image |
| 134 | + uses: sysdiglabs/scan-action@v6 |
| 135 | + with: |
| 136 | + image-tag: ghcr.io/sysdiglabs/sysdig-mcp-server:test |
| 137 | + sysdig-secure-token: ${{ secrets.KUBELAB_SECURE_API_TOKEN }} |
| 138 | + stop-on-failed-policy-eval: true |
| 139 | + stop-on-processing-error: true |
0 commit comments