Skip to content

Commit 18e8e5c

Browse files
authored
Merge branch 'main' into scvdHierarchical
2 parents 70f2308 + 17b8e46 commit 18e8e5c

55 files changed

Lines changed: 4997 additions & 2691 deletions

Some content is hidden

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## Fixes
2-
<!-- List the GitHub issue this PR resolves -->
3-
4-
- [#<Number>](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/<number>)
2+
<!-- List the GitHub issue(s) this PR resolves (e.g. #123) -->
3+
- #<issue-number>
54

65
## Changes
76
<!-- List the changes this PR introduces -->

.github/copilot-instructions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ Every TypeScript file under `src` and `scripts` must start with this header (adj
8686
* Provide meaningful error and log messages that help troubleshooting
8787
* Preserve existing behavior unless a change is intentional; cover behavior changes with tests
8888

89+
## Dependency Updates
90+
91+
Check the following for dependency updates and involved versions. Do this for PRs from developers and Dependabot.
92+
93+
* Known functional issues, API changes, or other incompatibilities
94+
* Known security vulnerabilities, malicious code, or supply chain attacks
95+
* Are the new versions at least 3 days old. Use NPM registry, GitHub releases, and GitHub tags to determine this (in the listed order)
96+
97+
Add the results to the review report.
98+
8999
## Imports
90100

91101
* Group imports in this order:

.github/lychee.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# For all options, see <https://lychee.cli.rs/usage/config/>
2+
3+
# Verbose program output
4+
# Accepts log level: "error", "warn", "info", "debug", "trace"
5+
verbose = "info"
6+
7+
# Interactive progress bar while checking links.
8+
# Disabled for CI usage
9+
no_progress = true
10+
cache = false
11+
12+
accept = [
13+
"200"
14+
]
15+
16+
# Maximum number of allowed redirects.
17+
max_redirects = 2
18+
19+
# Maximum number of allowed retries before a link is declared dead.
20+
max_retries = 2
21+
22+
# Only test links with the given schemes
23+
# Omit to check links with any other scheme.
24+
scheme = ["http", "https", "file"]
25+
26+
# Exclude links
27+
exclude = [
28+
# Needs cookies to be accepted
29+
'https://developer.arm.com',
30+
'https://www.segger.com'
31+
]
32+
33+
# Exclude paths from getting checked. The values are treated as regular expressions
34+
exclude_path = [
35+
"(^|[\\\\/])CHANGELOG\\.md$", # skip changelog file
36+
"\\.txt$", # skip .txt extensions
37+
"\\.html$", # skip .html extensions
38+
]

.github/workflows/ci.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
steps:
5454
- name: Harden the runner (Audit all outbound calls)
55-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
55+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
5656
with:
5757
egress-policy: audit
5858

@@ -62,7 +62,7 @@ jobs:
6262
fetch-depth: 0
6363
submodules: true
6464

65-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
65+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6666
env:
6767
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868
with:
@@ -80,6 +80,8 @@ jobs:
8080
exit 1
8181
fi
8282
BASE_TAG=$(printf '%s\n' "${DESCRIBE}" | grep -Eo '^v[0-9]+\.[0-9]+\.[0-9]+')
83+
# For non-release builds, increment the patch version by 1 (e.g. 1.64.1 -> 1.64.2)
84+
NEXT_VERSION="$(printf '%s\n' "${BASE_TAG}" | awk -F. '{ printf "%d.%d.%d", $1, $2, $3 + 1 }')"
8385
PR_QUALIFIER=$(printf '%s\n' "${DESCRIBE}" | grep -Eo '\-g[0-9a-f]+$' || true)
8486
BRANCH_QUALIFIER=$(printf '%s\n' "${DESCRIBE}" | grep -Eo '[0-9]+\-g[0-9a-f]+$' || true)
8587
SAFE_REF_NAME="${{ github.ref_name }}"
@@ -91,13 +93,13 @@ jobs:
9193
npm version --allow-same-version --no-git-tag-version --new-version "${TAG#v}"
9294
;;
9395
pull_request)
94-
npm version -s --allow-same-version --no-git-tag-version --new-version "${BASE_TAG#v}"
95-
PR_VERSION="${BASE_TAG#v}-pr${{ github.event.number }}${PR_QUALIFIER}"
96+
npm version -s --allow-same-version --no-git-tag-version --new-version "${NEXT_VERSION}"
97+
PR_VERSION="${NEXT_VERSION}-${BRANCH_QUALIFIER}"
9698
npm version --no-git-tag-version --new-version "${PR_VERSION}" && echo "Prerelease version set succeeded" || echo "Prerelease version set FAILED with exit code $?"
9799
;;
98100
*)
99-
npm version -s --allow-same-version --no-git-tag-version --new-version "${BASE_TAG#v}"
100-
PR_VERSION="${BASE_TAG#v}-${SAFE_REF_NAME}${BRANCH_QUALIFIER}"
101+
npm version -s --allow-same-version --no-git-tag-version --new-version "${NEXT_VERSION}"
102+
PR_VERSION="${NEXT_VERSION}-${SAFE_REF_NAME}${BRANCH_QUALIFIER}"
101103
npm version --no-git-tag-version --new-version "${PR_VERSION}" && echo "Prerelease version set succeeded" || echo "Prerelease version set FAILED with exit code $?"
102104
;;
103105
esac
@@ -133,7 +135,7 @@ jobs:
133135

134136
- name: Upload dist
135137
if: runner.os == 'Linux'
136-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
138+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
137139
with:
138140
name: dist
139141
path: |
@@ -154,13 +156,13 @@ jobs:
154156
git commit -m "Update CHANGELOG.md after release [skip ci]"
155157
git push
156158
157-
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
159+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
158160
if: runner.os == 'Linux'
159161
with:
160162
name: test-coverage
161163
path: ./coverage
162164

163-
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
165+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
164166
with:
165167
name: test-report-${{ matrix.target }}
166168
path: ./test-report.html
@@ -189,7 +191,7 @@ jobs:
189191
packages: read
190192
steps:
191193
- name: Harden the runner (Audit all outbound calls)
192-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
194+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
193195
with:
194196
egress-policy: audit
195197

@@ -198,7 +200,7 @@ jobs:
198200

199201
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
200202

201-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
203+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
202204
env:
203205
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
204206
with:
@@ -222,10 +224,10 @@ jobs:
222224
npm run package -- --target ${{ matrix.target }}
223225
224226
- name: Upload package
225-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
227+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
226228
with:
227-
name: vscode-cmsis-debugger-${{ matrix.target }}
228-
path: ./*.vsix
229+
path: ./*${{ matrix.target }}*.vsix
230+
archive: false
229231
retention-days: 1
230232

231233
validate:
@@ -250,7 +252,7 @@ jobs:
250252
packages: read
251253
steps:
252254
- name: Harden the runner (Audit all outbound calls)
253-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
255+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
254256
with:
255257
egress-policy: audit
256258

@@ -259,7 +261,7 @@ jobs:
259261

260262
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
261263

262-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
264+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
263265
env:
264266
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
265267
with:
@@ -273,7 +275,7 @@ jobs:
273275
- name: Download vsix package
274276
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
275277
with:
276-
pattern: vscode-cmsis-debugger-${{ matrix.target }}
278+
pattern: vscode-cmsis-debugger-${{ matrix.target }}-*.vsix
277279

278280
- name: Validate VSIX contents
279281
shell: bash
@@ -291,14 +293,14 @@ jobs:
291293
contents: write # for softprops/action-gh-release to create a GitHub release
292294
steps:
293295
- name: Harden the runner (Audit all outbound calls)
294-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
296+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
295297
with:
296298
egress-policy: audit
297299

298300
- name: Download packages
299301
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
300302
with:
301-
pattern: vscode-cmsis-debugger-*
303+
pattern: vscode-cmsis-debugger-*.vsix
302304

303305
- name: Download coverage report
304306
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -321,7 +323,7 @@ jobs:
321323
working-directory: test-coverage
322324

323325
- name: Attach packages
324-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
326+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
325327
with:
326328
files: |
327329
**/*.vsix

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Harden the runner (Audit all outbound calls)
44-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
44+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
4545
with:
4646
egress-policy: audit
4747

@@ -51,16 +51,16 @@ jobs:
5151

5252
- name: Initialize CodeQL
5353
id: initialize
54-
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
54+
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
5555
with:
5656
queries: security-extended
5757
languages: TypeScript
5858
source-root: src
5959

6060
- name: Autobuild
6161
id: autobuild
62-
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
62+
uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
6363

6464
- name: Perform CodeQL Analysis
6565
id: analyze
66-
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
66+
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
if: github.repository_owner == 'Open-CMSIS-Pack'
1414
steps:
1515
- name: Harden the runner (Audit all outbound calls)
16-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
16+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
1717
with:
1818
egress-policy: audit
1919

2020
- name: 'Checkout Repository'
2121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

2323
- name: 'Dependency Review'
24-
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
24+
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0

.github/workflows/markdown.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Harden Runner
25-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
25+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
2626
with:
2727
egress-policy: audit
2828

@@ -45,28 +45,18 @@ jobs:
4545
check-links:
4646
name: Check Markdown Links
4747
runs-on: ubuntu-latest
48-
permissions:
49-
packages: read
5048
steps:
5149
- name: Harden the runner (Audit all outbound calls)
52-
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
50+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
5351
with:
5452
egress-policy: audit
5553

56-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57-
58-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
59-
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
with:
62-
node-version-file: package.json
63-
registry-url: https://npm.pkg.github.com
64-
package-manager-cache: false
65-
66-
- name: Install dependencies
67-
env:
68-
GITHUB_TOKEN: ${{ github.token }}
69-
run: npm ci
54+
- name: Checkout repository
55+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7056

7157
- name: Check Links
72-
run: npm run check:links
58+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
59+
with:
60+
args: --config .github/lychee.toml './**/*.md'
61+
fail: true
62+
jobSummary: true

0 commit comments

Comments
 (0)