Skip to content

Commit b018a36

Browse files
authored
Merge pull request #120 from SmartBear/release/v0.5.0
Release v0.5.0
2 parents 63725a4 + c4b6fb6 commit b018a36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2432
-463
lines changed

.cspell.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@
1616
"**/dist/**"
1717
]
1818
}
19-

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ A clear and concise description of what the bug is.
2525
```
2626
2727
```
28-
</details>
28+
</details>

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate
2121
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
2222

2323
**Additional context**
24-
<!--Add any other context about the feature request here.-->
24+
<!--Add any other context about the feature request here.-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
## Testing
1414

15-
<!-- How was it tested? -->
15+
<!-- How was it tested? -->

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Or, if you wish, you can [contact us directly](mailto:bugsnag-support@smartbear.
66
## Bug or Feature Requests
77
If you would like to raise a bug or feature request, please do so by creating a [New Issue](https://github.com/SmartBear/smartbear-mcp/issues/new/choose) and selecting bug or feature.
88

9-
Please note: we cannot promise that we will fulfil all requests
9+
Please note: we cannot promise that we will fulfil all requests

.github/workflows/docker-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow tests that Docker builds are successful
2+
# It validates the Dockerfile and ensures the container can be built
3+
4+
name: Docker Build Test
5+
6+
on:
7+
push:
8+
branches: [ main, next ]
9+
pull_request:
10+
branches: [ main, next ]
11+
# Allow manual triggering
12+
workflow_dispatch:
13+
14+
permissions: read-all
15+
16+
jobs:
17+
docker-build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
26+
27+
- name: Build Docker image
28+
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
29+
with:
30+
context: .
31+
push: false
32+
tags: mcp/smartbear:test
33+
cache-from: type=gha
34+
cache-to: type=gha,mode=max
35+
36+
dockerfile-lint:
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+
43+
- name: Run hadolint Dockerfile linter
44+
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
45+
with:
46+
dockerfile: Dockerfile
47+
failure-threshold: warning

.github/workflows/docs-as-code-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
npx -y ajv-cli validate -s ./docs/schemas/manifest.schema.json -d "$manifest" --spec=draft2020
5555
fi
5656
fi
57-
done
57+
done

.github/workflows/docs-as-code.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
log_level:
1313
description: 'Log level: 1=DEBUG, 2=INFO, 3=WARNING, 4=ERROR'
1414
required: false
15-
default: '2' # Set the default log level to INFO
15+
default: '2' # Set the default log level to INFO
1616

1717
permissions: read-all
1818

@@ -62,7 +62,7 @@ jobs:
6262
npx -y ajv-cli validate -s ./docs/schemas/manifest.schema.json -d "$manifest" --spec=draft2020
6363
fi
6464
fi
65-
done
65+
done
6666
6767
publish:
6868
runs-on: ubuntu-latest

.github/workflows/node-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
name: Node CI
55

6-
on: [push]
6+
on:
7+
push:
8+
branches: [ main, next ]
9+
pull_request:
10+
branches: [ main, next ]
711

812
permissions: read-all
913

.github/workflows/test.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
retention-days: 30
6767

6868
- name: Comment coverage on PR
69-
if: github.event_name == 'pull_request' && matrix.node-version == 22
69+
if: github.event_name == 'pull_request' && matrix.node-version == 22 && github.event.pull_request.head.repo.full_name == github.repository
7070
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7171
with:
7272
script: |
@@ -96,7 +96,8 @@ jobs:
9696
.slice(0, limit);
9797
9898
return files;
99-
} // Try to read coverage summary
99+
}
100+
// Try to read coverage summary
100101
try {
101102
const coveragePath = path.join(process.cwd(), 'coverage', 'coverage-summary.json');
102103
@@ -183,10 +184,50 @@ jobs:
183184
});
184185
}
185186
187+
- name: Skip PR comment for forks (security)
188+
if: github.event.pull_request.head.repo.full_name != github.repository && matrix.node-version == 22
189+
run: |
190+
echo "ℹ️ Skipping coverage comment for forked PR due to security policy"
191+
echo "📊 Coverage report is still generated and available in workflow artifacts"
192+
echo "🔒 This prevents potential information disclosure to external contributors"
193+
194+
pre-commit:
195+
name: Pre-commit
196+
197+
runs-on: ubuntu-latest
198+
199+
env:
200+
PRE_COMMIT_HOME: ${{ github.workspace }}/.pre-commit
201+
202+
steps:
203+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
204+
205+
- name: Cache pre-commit
206+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
207+
with:
208+
path: |
209+
${{ env.PRE_COMMIT_HOME }}
210+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
211+
212+
- name: Set up uv
213+
uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
214+
with:
215+
enable-cache: true
216+
cache-suffix: pre-commit
217+
cache-dependency-glob: ''
218+
219+
- name: Install pre-commit
220+
run: uv tool install pre-commit
221+
222+
- name: Run pre-commit
223+
run: pre-commit run --show-diff-on-failure --color=always --all-files
224+
186225
test-results:
187226
if: always()
188227
runs-on: ubuntu-latest
189-
needs: test
228+
needs:
229+
- test
230+
- pre-commit
190231
steps:
191232
- name: Check test results
192233
run: |

0 commit comments

Comments
 (0)