chore: add OpenSSF Scorecard workflow #2198
Workflow file for this run
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
| name: Container | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Build container | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: false | |
| load: true | |
| tags: dynatrace-mcp:latest | |
| - name: Start container | |
| run: | | |
| docker run -d --name mcp-smoke \ | |
| -e DT_MCP_DISABLE_TELEMETRY=true \ | |
| -e DT_ENVIRONMENT=https://abc12345.apps.dynatrace.com \ | |
| dynatrace-mcp:latest --http --host 0.0.0.0 | |
| - name: Print container logs | |
| run: | | |
| sleep 3 | |
| docker logs mcp-smoke | |
| - name: Remove container | |
| if: always() | |
| run: docker rm -f mcp-smoke || true |