Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from snyk:main #188

Open
wants to merge 142 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
85c1a4c
feat: OSS via LS [HEAD-78] (#393)
j-luong Nov 29, 2023
fd3ffff
revert: change preview release branch to release OSS via LS as previe…
j-luong Nov 29, 2023
7d05d3e
fix: security upgrade axios from 0.27.2 to 1.6.0 [HEAD-1036] (#387)
Shyann Dec 4, 2023
14a7921
fix: security upgrade glob from 7.2.3 to 9.0.0 [HEAD-1125] (#404)
strassl-snyk Dec 8, 2023
1933e57
fix: upgrade rxjs from 7.5.5 to 7.8.1 (#410)
di55er Dec 13, 2023
06f08c9
fix: upgrade @amplitude/experiment-node-server from 1.3.0 to 1.7.8 (#…
di55er Dec 13, 2023
4cc8cf8
fix: upgrade glob from 9.0.0 to 9.3.5 (#408)
di55er Dec 13, 2023
e3e5445
fix: upgrade @snyk/code-client from 4.12.4 to 4.23.2 (#406)
di55er Dec 13, 2023
fb453ca
docs: synchronizing README from snyk/user-docs (#366)
github-actions[bot] Dec 13, 2023
a1c763b
fix: upgrade marked dependency (#411)
cat2608 Dec 13, 2023
082437d
feat: add detail section to code webview [HEAD-559] (#405)
cat2608 Dec 20, 2023
aadc43c
refactor: ensure immutability to avoid side effects in HTML encoding …
cat2608 Dec 20, 2023
6f71a32
chore: dependencies update [HEAD-1163 ] (#417)
cat2608 Dec 22, 2023
d59c9d0
fix: correct visibility toggling of details section [HEAD-1172] (#418)
cat2608 Dec 22, 2023
19eaecf
fix: security upgrade axios from 1.6.2 to 1.6.3 (#421)
strassl-snyk Dec 28, 2023
8c2811b
fix: only send analytics when connected to an MT US environment (#423)
chdorner-snyk Jan 10, 2024
c9f170e
feat: display Priority Score in Snyk Code suggestions [IDE-30] (#422)
cat2608 Jan 12, 2024
2e65f47
fix: add flag to track encoding state of example lines (#428)
cat2608 Feb 5, 2024
c42d217
fix: apply changes to custom endpoint [IDE-36] (#429)
teodora-sandu Feb 7, 2024
6bfc7d0
Update CHANGELOG.md (#430)
bastiandoetsch Feb 7, 2024
c26cdf3
fix: update README.md to correct Visual Studio Code extension links (…
Feb 21, 2024
d314d7b
chore: change codeowner to ide (#425)
bastiandoetsch Mar 1, 2024
dc0eea3
fix: update axios dependency [IDE-155] (#432)
bastiandoetsch Mar 1, 2024
91ed2c4
fix: release workflows [IDE-155] (#434)
bastiandoetsch Mar 1, 2024
b22d70d
fix: upgrade @amplitude/experiment-node-server from 1.7.8 to 1.8.2 (#…
johnrk Mar 4, 2024
0dbcd72
fix: remove iteratively secret from build workflow [IDE-155] (#435)
bastiandoetsch Mar 4, 2024
8a7f148
fix: upgrade marked from 11.1.0 to 11.1.1 (#426)
di55er Mar 4, 2024
3bb091b
fix: upgrade marked from 11.1.1 to 11.2.0 (#439)
jlourenc Mar 4, 2024
1a612a7
fix: upgrade @snyk/code-client from 4.23.2 to 4.23.5 (#438)
jlourenc Mar 4, 2024
0ea189c
fix: upgrade multiple dependencies with Snyk (#437)
jlourenc Mar 4, 2024
af14ce5
fix: shortened plugin name to just Snyk Security (#440)
Arvi3d Mar 13, 2024
ea1cfb8
fix: do not restrict activation of extension [HEAD2-48] (#441)
bastiandoetsch Mar 14, 2024
4d50858
feat: mark findings as ignored in tree view (#449)
acke Apr 3, 2024
0005dae
chore: bump LS Protocol version to 11 [IDE-236] (#450)
bastiandoetsch Apr 9, 2024
c4a5987
feat: upgrade node, eslint and types (#447)
carlos-snyk Apr 15, 2024
89cbe8f
refactor: remove unused exports/variables (#446)
carlos-snyk Apr 15, 2024
b866d3c
feat: Display preview for AI Fix (#445)
MichaelAquilina Apr 19, 2024
58bd8ae
fix: custom endpoint validation [IDE-126] (#454)
teodora-sandu May 2, 2024
1d2b3b7
feat: fetch feature flag for Code Consistent Ignores [IDE-274] (#455)
May 13, 2024
bfae2d6
feat: issue view options settings [IDE-212] (#456)
teodora-sandu May 15, 2024
847f7b1
fix: update SOURCE_PATH var to use correct README for vs docs (#459)
Arvi3d May 22, 2024
02b67c8
feat: conditionally render LSP template [IDE-233] (#457)
cat2608 May 22, 2024
78f64cb
fix: lower strictness of custom endpoint regex validation (#461)
teodora-sandu May 23, 2024
0a28a6b
docs: synchronizing README from snyk/user-docs (#460)
github-actions[bot] May 23, 2024
8c6889e
fix: add sentry and amplitude information to github vsix (#462)
bastiandoetsch May 27, 2024
ffd88f3
feat: load custom VSCode styling for HTML suggestion panel [IDE-240] …
cat2608 Jun 3, 2024
d23e75d
feat: show message if no option is configured [IDE-332] (#464)
teodora-sandu Jun 4, 2024
b26bbfb
feat: html vscode script for buttons and links [IDE-375] [IDE-367] (#…
teodora-sandu Jun 4, 2024
157a8b2
fix: default endpoint [IDE-377] (#466)
teodora-sandu Jun 10, 2024
1b3bde0
refactor: remove codeclient dependancy [IDE-364] (#468)
ShawkyZ Jun 10, 2024
3cfd254
feat: ai fix html (#467)
teodora-sandu Jun 11, 2024
7d7e3c0
fix: use fspath to get correct path [IDE-398] (#469)
ShawkyZ Jun 11, 2024
614d382
fix: applying AI code fixes on Windows [IDE-395] (#471)
ShawkyZ Jun 12, 2024
a4f6160
chore: add `.light-only` and `.dark-only` rules to LS CSS (#472)
cat2608 Jun 13, 2024
c8865e4
chore: update protocol version to 12 (#473)
bastiandoetsch Jun 14, 2024
248af1e
refactor: initialisation of feature flag status [IDE-346] (#458)
teodora-sandu Jun 14, 2024
7f32912
fix: fix padding for vscode (#470)
teodora-sandu Jun 14, 2024
ae111dd
fix: dataflow links work across files (#474)
teodora-sandu Jun 17, 2024
86ba9cf
fix: use fspath instead of path [IDE-410] (#477)
ShawkyZ Jun 20, 2024
1de87bb
fix: colours for consistent ignores styling [IDE-386] (#476)
teodora-sandu Jun 25, 2024
c2f752f
chore: updated CONTRIBUTING doc, removed @snyk/code-client (#480)
Arvi3d Jun 25, 2024
68e1a92
docs: synchronizing README from snyk/user-docs (#475)
github-actions[bot] Jun 25, 2024
b66765b
chore: add quality gates (#481)
cvaidas Jun 26, 2024
cdcbbd3
fix: ensure content within `.suggestion` is scrollable and visible (#…
Jun 26, 2024
5ba8dc9
feat: transmit required protocol version (#484)
bastiandoetsch Jun 27, 2024
b6c6dbd
refactor: remove unnecessary stylesheet and combine stylesheets (#483)
teodora-sandu Jun 27, 2024
6448dd1
fix: sync source for readme (#485)
bastiandoetsch Jun 28, 2024
036a323
refactor: prepare to use the html/template version of the OSS HTML (#…
teodora-sandu Jul 8, 2024
c5e705e
feat: add deltaFindings preview option [IDE-447] (#488)
ShawkyZ Jul 9, 2024
f066c29
feat: add authentication setting (#487)
bastiandoetsch Jul 9, 2024
bd3ffb6
refactor: removes unnecessary styling and HTML code [IDE-285] (#486)
teodora-sandu Jul 11, 2024
bb19865
Revert "feat: add authentication setting (#487)" (#490)
bastiandoetsch Jul 15, 2024
f10f698
feat: display branch selection in the tree node [IDE-446] (#489)
acke Jul 17, 2024
a81fded
feat: retrieve and store snykCodeInlineIgnore feature flag [IDE-440][…
bastiandoetsch Jul 19, 2024
fcea0e8
feat: handle LS folderConfigs [IDE-502] (#491)
ShawkyZ Jul 19, 2024
bfc5472
feat: hide ignore action if feature flag is off (#494)
bastiandoetsch Jul 23, 2024
381eb21
feat: toggle inline ignores button visibility based on feature flag […
bastiandoetsch Jul 23, 2024
0bfd4bd
feat: organise settings by categories [IDE-437] (#496)
Jul 24, 2024
f4d4a03
chore: bump ls version protocol [IDE-482] (#495)
ShawkyZ Jul 24, 2024
fe0ee87
feat: move delta preview setting to settings [IDE-482] (#497)
ShawkyZ Jul 24, 2024
a49bf50
fix: add spaces to value selection for delta (#498)
ShawkyZ Jul 24, 2024
e862dee
chore: regrouped settings (#499)
Arvi3d Jul 25, 2024
541a41e
chore: renamed "Known issues" to "All issues" in the setting for conf…
Arvi3d Jul 25, 2024
a0d5168
fix: refresh views when changing config [IDE-516] (#501)
ShawkyZ Jul 25, 2024
56f6d4a
feat: add configuration setting for authentication method, default to…
bastiandoetsch Jul 26, 2024
468444e
fix: use token as default auth (#503)
bastiandoetsch Jul 26, 2024
f6a758e
chore: hide oss quickfixes behind a preview flag (#504)
bastiandoetsch Jul 26, 2024
a73d3ee
fix: only display ai fix treenode if any issues, use "issue(s)" [IDE-…
bastiandoetsch Jul 31, 2024
167062f
refactor: use issues from diagnostics [IDE-538] (#506)
ShawkyZ Aug 8, 2024
71c527b
fix: improve readability of code elements in high-contrast themes (#508)
cat2608 Aug 12, 2024
8be35be
feat: IaC via Language Server (#507)
Aug 13, 2024
a367a93
chore: add missing CHNAGELOG IaC via LS (#511)
Aug 13, 2024
5d76986
feat: base branch selection for OSS and IaC (#513)
ShawkyZ Aug 21, 2024
0eb7772
chore: update axios (#519)
Aug 22, 2024
dae6834
chore: fixed docs sync script by fixing a path (#522)
Arvi3d Aug 27, 2024
b579e54
chore: modified Github action to release new stable versions manually…
Arvi3d Aug 28, 2024
68e7554
docs: synchronizing README from snyk/user-docs (#523)
github-actions[bot] Aug 28, 2024
69dc632
fix: oauth2 authentication method by default (#520)
Arvi3d Aug 28, 2024
94d94f3
feat: move delta preview to settings [IDE-597] (#525)
acke Aug 30, 2024
12dde21
chore: handle startup errors better [IDE-5] (#524)
bastiandoetsch Aug 30, 2024
cd5835c
docs: synchronizing README from snyk/user-docs (#526)
github-actions[bot] Aug 30, 2024
36e07ac
chore: update UI to correspond to design (#527)
acke Sep 2, 2024
b8e76fc
feat: move delta preview to settings [IDE-622] (#529)
acke Sep 6, 2024
a247212
chore: change cli download url (#531)
ShawkyZ Sep 11, 2024
939a462
Revert "chore: change cli download url (#531)" (#532)
bastiandoetsch Sep 11, 2024
c644384
fix: update protocol version to 15 (#534)
ShawkyZ Sep 17, 2024
ec8491f
fix: delete duplicate setting for delta (#535)
ShawkyZ Sep 26, 2024
6d9d113
fix: improve error log when git repo is faulty [IDE-657] (#538)
acke Oct 9, 2024
4bd6a7a
chore: bump ls protocol version to 16 (#539)
ShawkyZ Oct 9, 2024
2d3ddd8
feat: clear cache command (#542)
ShawkyZ Oct 14, 2024
383c313
fix/autofix: fixed handling of empty suggestions (#536)
BBerabi Oct 14, 2024
192b431
feat: send fix applied analytics (#543)
acke Oct 15, 2024
b22811f
feat: load issue html on demand (#544)
ShawkyZ Oct 16, 2024
a6de186
docs: synchronizing README from snyk/user-docs (#540)
github-actions[bot] Oct 16, 2024
764dad0
fix: fixed description for the new Delta findings setting (#545)
Arvi3d Oct 18, 2024
ccce690
fix: update styles to play better together with ls protocol version 1…
bastiandoetsch Oct 23, 2024
6df53b6
fix: oss font size (#547)
ShawkyZ Oct 24, 2024
7ed3c5a
feat: automated-region-configuration (IDE-732) (#549)
acke Oct 25, 2024
504cc8c
fix: update download endpoint (#548)
ShawkyZ Oct 29, 2024
fcdcad8
fix: send correct fixid [IDE-754] (#553)
DariusZdroba Oct 29, 2024
edffa9f
fix: hide AI fix div if no fixes [IDE-753] (#555)
ShawkyZ Nov 5, 2024
b141940
Merge branch 'main' into hotfix/2.19.2
ShawkyZ Nov 5, 2024
3699793
fix: merge hotfix 2.19.2 back to main (#552)
bastiandoetsch Nov 5, 2024
d6ddc07
chore: disable hovers [IDE-390] (#554)
bastiandoetsch Nov 7, 2024
24c359a
feat: add plugin installed event
bastiandoetsch Nov 8, 2024
f482442
fix: warnings
bastiandoetsch Nov 8, 2024
9c3d454
fix: use global extension state
bastiandoetsch Nov 8, 2024
404406b
fix: use global extension state
bastiandoetsch Nov 8, 2024
c95a4c2
fix: a few lint warnings
bastiandoetsch Nov 8, 2024
612967d
chore: set hover verbosity to 1
bastiandoetsch Nov 8, 2024
6e5b187
fix: test
bastiandoetsch Nov 8, 2024
5e52237
docs: updated changelog
bastiandoetsch Nov 8, 2024
32038b8
fix: send plugin installed event after init
bastiandoetsch Nov 11, 2024
0d56250
feat: send plugin installed event on startup [IDE-736] (#556)
bastiandoetsch Nov 11, 2024
3a41a25
feat: use cli ls extension [IDE-76] (#551)
ShawkyZ Nov 11, 2024
b1218bd
fix: handle nonexisting LS version (#557)
ShawkyZ Nov 13, 2024
92c3440
chore: removed unnecessary file and toggle code ignore (#559)
DariusZdroba Nov 22, 2024
6bff18c
fix: dissable button after applying fix [IDE-779] (#562)
DariusZdroba Dec 6, 2024
51e786c
refactor: remove unnecessary css (#560)
DariusZdroba Dec 6, 2024
1b81854
fix: use xdg dir as default cli Path (#563)
ShawkyZ Dec 9, 2024
8a03f1f
chore: add css changes needed for new ls data-flow (#564)
DariusZdroba Dec 16, 2024
72371a9
fix: force cli download if checksum fails (#566)
DariusZdroba Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
version: 2.1

orbs:
prodsec: snyk/[email protected]
prodsec: snyk/prodsec-orb@1

commands:
install:
steps:
- run:
name: Install
command: npm ci

jobs:
security-scans:
resource_class: small
docker:
- image: cimg/node:lts
steps:
- checkout
- install
- prodsec/security_scans:
mode: auto
open-source-additional-arguments: --exclude=mocked_data
iac-scan: disabled

workflows:
version: 2
Expand All @@ -11,4 +31,11 @@ workflows:
name: Scan repository for secrets
context:
- snyk-bot-slack
channel: hammerhead-alerts
channel: snyk-on-snyk-devex_ide
filters:
branches:
ignore:
- main

- security-scans:
context: devex_ide
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
"no-continue": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-redundant-type-constituents": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "warn",
"import/no-extraneous-dependencies": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": ["error"],
Expand Down
6 changes: 1 addition & 5 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
* @snyk/hammerhead
src/snyk/common/services/learnService.ts @snyk/owl
src/test/unit/common/services/learnService.test.ts @snyk/owl
src/snyk/snykCode/codeSettings.ts @snyk/hammerhead @snyk/zenith @snyk/nebula
src/test/unit/snykCode/codeSettings.test.ts @snyk/hammerhead @snyk/zenith @snyk/nebula
* @snyk/ide
19 changes: 14 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: CI
on:
pull_request:
branches:
- main
- 'main'
workflow_call:
secrets:
ITERATIVELY_KEY:
required: true

jobs:
build:
name: Build and Test
Expand All @@ -21,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'

- name: Cache NPM files
uses: actions/cache@v2
Expand All @@ -42,3 +40,14 @@ jobs:

- name: Run unit tests
run: npm run test:unit

- name: Run integration tests
run: |
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run test:integration
if: runner.os == 'Linux'
- name: Run integration tests
run: npm run test:integration
if: runner.os != 'Linux'


2 changes: 1 addition & 1 deletion .github/workflows/readme-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "No documentation changes detected, exiting."
fi
env:
SOURCE_PATH: ./docs/docs/integrations/ide-tools/visual-studio-code-extension/README.md
SOURCE_PATH: ./docs/docs/scm-ide-and-ci-cd-integrations/snyk-ide-plugins-and-extensions/visual-studio-code-extension/README.md
FILE_TO_COMMIT: README.md
DESTINATION_REPOSITORY: vscode-extension
DESTINATION_BRANCH: docs/automatic-gitbook-update
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/release-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ name: Build and Release "Preview"
on:
push:
branches:
# TODO: revert back to main once this feature is released
- feat/HEAD-78_oss_via_ls
- main
jobs:
build:
uses: snyk/vscode-extension/.github/workflows/ci.yaml@main
secrets:
ITERATIVELY_KEY: ${{ secrets.ITERATIVELY_KEY }}


release-preview:
name: Release Preview
runs-on: ubuntu-latest
Expand All @@ -25,13 +22,10 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Verify analytics events
run: npm run ampli:verify -- -t ${{ secrets.ITERATIVELY_KEY }}

# Naming convention for the preview version means we can only release one preview per hour
- name: Patch to preview version
run: npm run patch-preview
env:
SNYK_VSCE_SEGMENT_WRITE_KEY: ${{ secrets.SNYK_VSCE_SEGMENT_WRITE_KEY }}
SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY: ${{ secrets.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY }}
SNYK_VSCE_SENTRY_DSN_KEY: ${{ secrets.SNYK_VSCE_SENTRY_DSN_KEY }}

Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Build and Release

on:
workflow_dispatch:
schedule:
- cron: '0 9 * * 2' # every Tuesday at 9 am UTC
branches:
- main
# schedule: TODO: align release schedule with CLI
# - cron: '0 9 * * 2' # every Tuesday at 9 am UTC

jobs:
build:
uses: snyk/vscode-extension/.github/workflows/ci.yaml@main
secrets:
ITERATIVELY_KEY: ${{ secrets.ITERATIVELY_KEY }}

publish:
runs-on: ubuntu-latest
Expand All @@ -29,21 +29,17 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Verify analytics events
run: npm run ampli:verify -- -t ${{ secrets.ITERATIVELY_KEY }}

- name: Bump patch version
id: patched-tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: main
release_branches: main,fix.*,chore.*
default_bump: patch

- name: Add Credentials
run: |
sed -i \
-e 's|${env.SNYK_VSCE_SEGMENT_WRITE_KEY}|${{ secrets.SNYK_VSCE_SEGMENT_WRITE_KEY }}|g' \
-e 's|${env.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY}|${{ secrets.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY }}|g' \
-e 's|${env.SNYK_VSCE_SENTRY_DSN_KEY}|${{ secrets.SNYK_VSCE_SENTRY_DSN_KEY }}|g' \
snyk.config.json
Expand All @@ -67,7 +63,14 @@ jobs:
run: npm ci

- name: Package VSIX
run: echo y | vsce package --no-git-tag-version --no-update-package-json ${{ needs.publish.outputs.new-version }}
run: |
run: |
sed -i \
-e 's|${env.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY}|${{ secrets.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY }}|g' \
-e 's|${env.SNYK_VSCE_SENTRY_DSN_KEY}|${{ secrets.SNYK_VSCE_SENTRY_DSN_KEY }}|g' \
snyk.config.json

echo y | vsce package --no-git-tag-version --no-update-package-json ${{ needs.publish.outputs.new-version }}

- name: Extract release notes
id: extract-release-notes
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ yarn-error.log
#################################
.idea/
*.iml
.vscode/

#################################
# Logs and temp files #
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.md
21 changes: 0 additions & 21 deletions .vscode/settings.json

This file was deleted.

Loading