Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 418595c

Browse files
jason-meredith-rewindjgadsdenlreadingdependabot[bot]kingthorin
authored
Update fork with upstream changes (#14)
* update browserstack platform and browser list * Graph factory spec updates * Removing outdated test * Addressing linting errors * browserstack available platforms and browsers * update to latest browserstack-cypress-cli for workflows * allow magnet for diagram components * Removing temporary test runner from package.json * remove ports from text box * Removing unused references / addressing linting violations * use File System Access API if supported on the browser * check for cancel by user when saving to local filesystem * update link checker in workflow * update and enable trivy in workflows * update cache action in workflows * provide reason for out of scope in the reports * provide showAttributes to report components * add properties to report * tidy up of entity description in reports * update cookie version * Bump github/codeql-action from 3.26.6 to 3.27.0 in /.github/workflows Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.6 to 3.27.0. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v3.26.6...v3.27.0) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 4.0.2 to 4.1.0 in /.github/workflows Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.2 to 4.1.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v4.0.2...v4.1.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * enable contextual threat suggestions only when new threat button is enabled * release version 2.3.0-RC1 * Bump rexml from 3.3.6 to 3.3.9 in /docs Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](ruby/rexml@v3.3.6...v3.3.9) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump elliptic from 6.5.7 to 6.6.0 in /td.vue Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.7 to 6.6.0. - [Commits](indutny/elliptic@v6.5.7...v6.6.0) --- updated-dependencies: - dependency-name: elliptic dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * signing of windows executables now done manually * minimum version of elliptic set to 6.6.0 * use notarytool for MacOS images * disable trivy until it can be reliably downloaded * release version 2.3.0-RC2 * Bump lycheeverse/lychee-action from 2.0.2 to 2.1.0 in /.github/workflows Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 2.0.2 to 2.1.0. - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](lycheeverse/lychee-action@v2.0.2...v2.1.0) --- updated-dependencies: - dependency-name: lycheeverse/lychee-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * move environment to top of jobs * fix for the notarization variables * add app bundle ID for MacOS notarization * try appId in MacOS electron builder options * provide appBundleId to packages * Bump aquasecurity/trivy-action in /.github/workflows Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.28.0 to 0.29.0. - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](aquasecurity/trivy-action@0.28.0...0.29.0) --- updated-dependencies: - dependency-name: aquasecurity/trivy-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * staple electron-builder to version 24.12.0 * re-enable Trivy in workflow pipelines * fix for cross-spawn * ensure cross-spawn is at latest version * use electron-builder version 24.12.0 * manual macos notarization * upate macos signing * add electron builder package * allow macos notarization to fail * update zaproxy/action-full-scan to version 0.12.0 in workflows * update build-push-action to version 6.10.0 in workflows * release version 2.3.0-RC3 * release version 2.3.0 * add to ZAP rules * add release snap workflow * update release note template * provide open-source software certs for Windows signing * open-source software certs for Windows signing pipeline * add publisher name to Windows installer * add digest definitions for Windows installer * add time stamp server for Windows installer * add sha256 digest for Windows installer * update release instructions * Bump actions/cache from 4.1.1 to 4.2.0 in /.github/workflows Bumps [actions/cache](https://github.com/actions/cache) from 4.1.1 to 4.2.0. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v4.1.1...v4.2.0) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * update release process * set latest build version * Update actions/download-artifact to consistently use 4.1.8 * update version of path-to-regexp * Include new values Critical and TBA to priority field. Change the default value to TBA. Fix I18N files. * Fix unit test * Fix NODE_VERSION in Dockerfile * Fix typo in the fi.js file. * fixup app-builder-lib link * Upgrading to Express v5 * Updating package-lock * Upgrading express to v5 * Restoring parsers test to original test, the update was not needed * update action-gh-release to version 2.2.0 * update setup-buildx-action to version 3.8.0 in workflows * update purge-deprecated-workflow-runs to version 2.2.0 in workflows * update upload-artifact to version 4.5.0 in workflows * update lychee-action version 2.2.0 in workflows * update systeminformation package to version 5.23.23 * update build-push-action to version 6.11.0 in workflow pipelines * update setup-qemu-action to version 3.3.0 in workflow pipelines * update upload-artifact to version 4.6.0 in workflow pipelines * update codeql-action to version 3.28.1 in workflow pipelines * update ZAP rules * overwrite model version with app version on save file * provide both diagram description and icon in threat model view * Bump docker/build-push-action in /.github/workflows Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.11.0 to 6.13.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v6.11.0...v6.13.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: if a repository is now searched for, a call is made against the Git provider to get a new list of repositories. * Bump actions/setup-node from 4.1.0 to 4.2.0 in /.github/workflows Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v4.1.0...v4.2.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * feat: It is now possible to create a new branch when selecting the branch. * feat: add tests * Bump otto-de/purge-deprecated-workflow-runs in /.github/workflows Bumps [otto-de/purge-deprecated-workflow-runs](https://github.com/otto-de/purge-deprecated-workflow-runs) from 2.2.0 to 3.0.1. - [Release notes](https://github.com/otto-de/purge-deprecated-workflow-runs/releases) - [Commits](otto-de/purge-deprecated-workflow-runs@v2.2.0...v3.0.1) --- updated-dependencies: - dependency-name: otto-de/purge-deprecated-workflow-runs dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * feat: display whether the branch is protected with an icon (only works under gitlab and github) * Fix id duplication on threatsuggestdialog * Bump lycheeverse/lychee-action from 2.2.0 to 2.3.0 in /.github/workflows Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](lycheeverse/lychee-action@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: lycheeverse/lychee-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * TLS without proxy * updated example.env * handling APP_PORT check * link checker ignores redirects to Docker * Adding ability to export the graph as PNG, JPEG and SVG. Not tested on desktop, no tests written. WIP * Adding unit tests * Added search functionality for language selection dropdown * Fix test : Replaced 'English' with 'eng' * Fixed locale selection and filtering, all tests passing * provide locale name in locale display * make label visible for trust boundary box * trivy scan update * remove client webSocketURL devServer config * add passive events support to touchstart and mousewheel events * add passive-events-support to Jest ignore pattern * updated the example env * reinstate diagram node resizing * Format example.env Removed extra whitespace * first steps for edge labels being selectable * consolidating hostname variable * trust boundary and flow labels legible and selectable * responsive name update for flows and trust boundaries * improve selection for flows and trust boundary stencils * update new threat model template to include SRIDE diagram * update new threat model template to include Generic diagram * components are selected when added * identify events that need to convert edge cell to data flow * convert edge to flow on attach or select events * revert changes to new threat model, removing added STRIDE diagram * update actions in workflows * update dependencies in front-end and server * update front-end dependencies * release candidate 2.4.0-RC1 * identify line that cuts off diagram components on save * remove version 1.x demo models * add demo model for Three Tier Web Application * provide demo models for renting-car and generic-cms * move version back to latest from RC1 * reserve places for other demo models to be added later * schema allows version string to include -RCxx * schema now allows text box not to have a description * big fix for trust boundar box name * provide a minimal set of env vars * provide confirmation that save has taken place * preserves existing data flows and boundaries that do not have labels * add Payments Processing Platform demo * update workflows for latest versions of actions * Fixing label issue for flows and boundary curves * Reverting unnecessary updateName call * Fixing errant deletion * Rename "PORT" environment variable to "SERVER_API_PORT" Prefers the environment variable named "SERVER_API_PORT". If this value is falsy, then uses the environment variable "PORT" for backwards compatibility. If this value is falsy, then use the default value of 3000. * provide label to individual edges * add demo model for online game * remove duplicate in back-end test spec * release version 2.4.0 * set build version to latest * Fixed up everywhere that PORT was referenced to include SERVER_API_PORT * renamed js variable PORT for clarity * Added error checking for TLS cert/key file access * Reordered and commented example.env file * Update example.env to fix failing test * removing potential variable name conflict * Fixing test error * bug fix for data flow and trust boundary labels overwritten by curve * fix for unexpected label on Trust Boundary Box * priority level TBD instead of TBA * debug for snap release action * Revert "Clean up, add error checking, remove ambiguity around term "port"" * release version 2.4.1 * set build version to latest * add IoT and CMS demo models along with JSON versions * update main demo model * configure lint to be maximally strict * emphasis the use of unit tests and e2e tests when contributing * update qemu-action to version 3.6.0 in workflows * update axios to latest version 1.8.2 * fix links in pull request template fix links to CoCand contributors notes * fix bootstrap broken link * update workflow actions * initial Jekyll page with theme owasp-td-jekyll * update lychee-action in workflow * compatible Jekyll version for Alpine Ruby * documentation files restored * provide image float and links to docs * redirect docs page from project pages to demo docs site * update babel to latest * Updating owasp-td-jekyll to the latest version, re-adding Gemfile.lock * Dockerfile: using ruby image to build docs * Ignoring secret detection in bitbucket.html (false positives) * Reverting trivyignore rule * PR Action: skipping bitbucket docs for Trivy * fixup docs image links * fix links within the docs --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jon Gadsden <jon.gadsden@owasp.org> Co-authored-by: Leo Reading <leo.reading@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rick M <kingthorin@users.noreply.github.com> Co-authored-by: fparuce <felipe_costacurta@hotmail.com> Co-authored-by: Felipe Costacurta Paruce <88634279+fparuce@users.noreply.github.com> Co-authored-by: Florian Schmidt <florian1.schmidt@enviam.de> Co-authored-by: Marc Catrisse <marc.catrisse@upc.edu> Co-authored-by: syedtalha <syed.talha@devflovv.com> Co-authored-by: Eric Fitzgerald <github@efitz.net> Co-authored-by: Anvita Prasad <cs23b1059.iiitdm.ac.in>
1 parent 0b15f4c commit 418595c

File tree

326 files changed

+61404
-11474
lines changed

Some content is hidden

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

326 files changed

+61404
-11474
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
What existing issue does the pull request solve?
44
Please provide enough information so that others can review your pull request
55
-->
6+
If this closes an existing issue then add "closes #xxxx", where xxxx is the issue number
67

78
**Description for the changelog**:
8-
<!--
9-
A short (one line) summary that describes the changes in this pull request for inclusion in the change log
10-
-->
9+
<!-- A short (one line) summary that describes the changes in this pull request for inclusion in the change log -->
10+
11+
**Declaration**:
12+
13+
- [ ] appropriate unit tests have been created / modified
14+
- [ ] functional tests created / modified for changes in functionality
15+
- [ ] any use of AI has been declared in this pull request
1116

1217
**Other info**:
13-
<!--
14-
Add here any other information that may be of help to the reviewer
15-
If this closes an existing issue then add "closes #xxxx", where xxxx is the issue number
16-
-->
18+
<!-- Add here any other information that may be of help to the reviewer -->
1719

1820
Thanks for submitting a pull request!
19-
Please make sure you follow our code_of_conduct.md and our contributing guidelines contributing.md
21+
Please make sure you follow our [Code of Conduct](../code_of_conduct.md)
22+
and our [contributing guidelines](../contributing.md)

.github/workflows/.trivyignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ignoring these vulnerabilities in zlib,
2+
# there are no updates to zlib and so these are unlikely to be fixed
3+
CVE-2018-25032
4+
CVE-2022-37434
5+
6+
# https://avd.aquasec.com/nvd/cve-2023-28155
7+
# request version prior to 2.88.2
8+
# this vulnerability is for the build system, not run time, so ignore
9+
CVE-2023-28155
10+
11+
# https://avd.aquasec.com/nvd/cve-2024-9143
12+
# alpine 3.20.3 is pulling in a Low priority vuln for libcrypto3 version 3.3.2-r2,
13+
# ignore for now until alpine is updated
14+
CVE-2024-9143
15+
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
10110 OUTOFSCOPE .*vendor.*\.js
2-
10110 OUTOFSCOPE .*graph-test.*\.js
1+
10062 OUTOFSCOPE .*_bom\..*
2+
10094 OUTOFSCOPE .*_bom\..*
33
10099 OUTOFSCOPE .*vendor.*\.js
44
10099 OUTOFSCOPE .*diagram-edit.*\.js
55
10099 OUTOFSCOPE .*app.*\.js
6+
10110 OUTOFSCOPE .*vendor.*\.js
7+
10110 OUTOFSCOPE .*graph-test.*\.js
68
10110 OUTOFSCOPE .*diagram-edit.*\.js
7-
10062 OUTOFSCOPE .*_bom\..*
8-
10094 OUTOFSCOPE .*_bom\..*
99
10110 OUTOFSCOPE .*jquery\.min\.js
10-
10003 IGNORE (docs/assets/js/jquery.dataTables.min.js)
11-
10094 IGNORE Base64 Disclosure
12-
10027 IGNORE Information Disclosure - Suspicious Comments
13-
10096 IGNORE Timestamp Disclosure - Unix
14-
10099 IGNORE Source Code Disclosure - SQL
15-
10109 IGNORE Modern Web Application
16-
10049 IGNORE Non-Storable Content
17-
10055 IGNORE (CSP: style-src unsafe-inline)
18-
10063 IGNORE (Feature Policy Header Not Set)
19-
90005 IGNORE (Sec-Fetch-Dest Header is Missing)
10+
10003 IGNORE Javascript libraries handled by dependabot
11+
10055 IGNORE CSP: script-src unsafe-eval
12+
10063 IGNORE Permissions Policy Header Not Set
13+
40039 IGNORE Web Cache Deception
14+
90004 IGNORE Set the Cross-Origin-Opener-Policy header

.github/workflows/browserstack.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,29 @@ on:
1010
jobs:
1111
browserstack_e2e:
1212
name: Browserstack e2e
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
defaults:
1515
run:
1616
working-directory: td.vue
1717
if: github.repository == 'OWASP/threat-dragon'
18+
1819
steps:
1920
- name: Checkout
20-
uses: actions/checkout@v4.1.1
21+
uses: actions/checkout@v4.2.0
2122

22-
- name: Use Node.js 18.x
23-
uses: actions/setup-node@v4.0.0
23+
- name: Use node LTS 20.14.0
24+
uses: actions/setup-node@v4.3.0
2425
with:
25-
node-version: '18'
26+
node-version: '20.14.0'
2627

2728
- name: Cache NPM dir
28-
uses: actions/cache@v4.0.0
29+
uses: actions/cache@v4.2.0
2930
with:
3031
path: ~/.npm
3132
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3233
restore-keys: |
3334
${{ runner.os }}-node-
35+
${{ runner.os }}-
3436
3537
- name: Install packages
3638
run: |

.github/workflows/housekeeping.yaml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
workflow_dispatch:
77

88
env:
9-
IMAGE_NAME: threatdragon/owasp-threat-dragon
9+
IMAGE_NAME: threatdragon/owasp-threat-dragon:latest
1010

1111
# for security reasons the github actions are pinned to specific release versions
1212
jobs:
1313
chores:
1414
name: Tidy workflows
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
permissions:
1717
actions: write
1818

@@ -26,13 +26,13 @@ jobs:
2626
keep_minimum_runs: 10
2727

2828
- name: Delete unused workflows
29-
uses: otto-de/purge-deprecated-workflow-runs@v2.0.3
29+
uses: otto-de/purge-deprecated-workflow-runs@v3.0.1
3030
with:
3131
token: ${{ github.token }}
3232

3333
stale:
3434
name: Tidy pull requests
35-
runs-on: ubuntu-22.04
35+
runs-on: ubuntu-24.04
3636
permissions:
3737
pull-requests: write
3838
issues: write
@@ -41,45 +41,46 @@ jobs:
4141
- name: Tidy stale PRs and issues
4242
uses: actions/stale@v9
4343
with:
44-
days-before-issue-stale: 182
44+
days-before-issue-stale: 190
4545
days-before-issue-close: -1
46-
stale-issue-message: 'This issue is stale because it has been open for 6 months with no activity.'
46+
stale-issue-message: 'This issue is stale because it has been open for more than 6 months with no activity'
4747
stale-issue-label: stale
4848
remove-issue-stale-when-updated: true
4949
days-before-pr-stale: 21
5050
days-before-pr-close: 7
51-
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity. Remove stale label, or add a comment, otherwise it will be closed in 7 days.'
52-
close-pr-message: 'This PR was closed because it has been stalled for 28 days with no activity.'
51+
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity. Remove stale label, or add a comment, otherwise it will be closed in 7 days'
52+
close-pr-message: 'This PR was closed because it has been stalled for 28 days with no activity'
5353

5454
trivy:
55-
name: Scan with trivy
56-
runs-on: ubuntu-22.04
55+
name: Scan with Trivy
56+
runs-on: ubuntu-24.04
5757
permissions:
5858
contents: write
5959
security-events: write
6060

6161
steps:
6262
- name: Checkout repository
63-
uses: actions/checkout@v4.1.1
63+
uses: actions/checkout@v4.2.0
6464
with:
6565
ref: main
6666

67-
- name: Run vulnerability scanner
68-
uses: aquasecurity/trivy-action@0.19.0
67+
- name: Run Trivy vulnerability scanner
68+
uses: aquasecurity/trivy-action@0.30.0
6969
with:
70-
image-ref: '${{ env.IMAGE_NAME }}:latest'
70+
image-ref: '${{ env.IMAGE_NAME }}'
7171
format: 'template'
7272
template: '@/contrib/sarif.tpl'
73+
trivyignores: '.github/workflows/.trivyignore'
7374
output: 'trivy-results.sarif'
7475

7576
- name: Upload scan results to GitHub Security tab
76-
uses: github/codeql-action/upload-sarif@v3.25.1
77+
uses: github/codeql-action/upload-sarif@v3.28.1
7778
with:
7879
sarif_file: 'trivy-results.sarif'
7980

8081
codeql:
8182
name: Analyze with codeql
82-
runs-on: ubuntu-22.04
83+
runs-on: ubuntu-24.04
8384
permissions:
8485
security-events: write
8586

@@ -88,12 +89,12 @@ jobs:
8889

8990
steps:
9091
- name: Checkout repository
91-
uses: actions/checkout@v4.1.1
92+
uses: actions/checkout@v4.2.0
9293
with:
9394
ref: main
9495

9596
- name: Initialize CodeQL
96-
uses: github/codeql-action/init@v3.25.1
97+
uses: github/codeql-action/init@v3.28.1
9798
with:
9899
languages: 'javascript'
99100
config-file: ./.github/codeql/codeql-config.yml
@@ -102,21 +103,21 @@ jobs:
102103
# Prefix the list here with "+" to use these queries and those in the config file.
103104

104105
- name: CodeQL autobuild
105-
uses: github/codeql-action/autobuild@v3.25.1
106+
uses: github/codeql-action/autobuild@v3.28.1
106107

107108
- name: Perform vulnerability analysis
108-
uses: github/codeql-action/analyze@v3.25.1
109+
uses: github/codeql-action/analyze@v3.28.1
109110

110111
link_checker:
111112
name: Link checker
112-
runs-on: ubuntu-22.04
113+
runs-on: ubuntu-24.04
113114

114115
steps:
115116
- name: Checkout markdown
116-
uses: actions/checkout@v4.1.1
117+
uses: actions/checkout@v4.2.0
117118

118119
- name: Link Checker
119-
uses: lycheeverse/lychee-action@v1.10.0
120+
uses: lycheeverse/lychee-action@v2.4.0
120121
with:
121122
fail: true
122123
env:

0 commit comments

Comments
 (0)