Skip to content

Commit 7f18d81

Browse files
authored
Merge pull request #5060 from snyk/main
chore: merge temporary main into master
2 parents 023f633 + e78bad6 commit 7f18d81

33 files changed

+5386
-4578
lines changed

.circleci/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
3131
jq \
3232
faketime \
3333
zip \
34+
cmake \
3435
nodejs=$(apt-cache policy nodejs | grep nodesource | xargs | cut -d " " -f2)
3536
RUN node -v
3637
RUN apt-get auto-remove -y && apt-get clean -y && rm -rf /var/lib/apt/
@@ -74,5 +75,10 @@ ENV TEMP=/tmp
7475
ENV TMP=$TEMP
7576
ENV TMPDIR=$TEMP
7677

78+
# install rust and convco
79+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
80+
RUN ~/.cargo/bin/cargo install convco
81+
ENV PATH=/home/circleci/.cargo/bin:$PATH
82+
7783
WORKDIR /
7884
ENTRYPOINT [""]

.circleci/config.yml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2.1'
1+
version: 2.1
22

33
parameters:
44
cli_download_base_url:
@@ -27,8 +27,8 @@ parameters:
2727
default: '2.7.0'
2828

2929
orbs:
30-
prodsec: snyk/prodsec-orb@1.0
31-
snyk: snyk/snyk@1.7.0
30+
prodsec: snyk/prodsec-orb@1
31+
snyk: snyk/snyk@2.0.3
3232
aws-cli: circleci/[email protected]
3333
gh: circleci/[email protected]
3434

@@ -38,12 +38,12 @@ executors:
3838
- image: alpine:3.17
3939
docker-amd64:
4040
docker:
41-
- image: bastiandoetsch209/cli-build:20231210-192113
41+
- image: bastiandoetsch209/cli-build:20240214-145818
4242
working_directory: /mnt/ramdisk/snyk
4343
resource_class: large
4444
docker-arm64:
4545
docker:
46-
- image: bastiandoetsch209/cli-build-arm64:20231210-192113
46+
- image: bastiandoetsch209/cli-build-arm64:20240214-145818
4747
working_directory: /mnt/ramdisk/snyk
4848
resource_class: arm.large
4949
linux-ubuntu-mantic-amd64:
@@ -326,7 +326,7 @@ commands:
326326
steps:
327327
- when:
328328
condition:
329-
equal: [master, << pipeline.git.branch >>]
329+
equal: [main, << pipeline.git.branch >>]
330330
steps:
331331
- run:
332332
name: Handling failed release
@@ -348,25 +348,24 @@ commands:
348348
####################################################################################################
349349

350350
workflows:
351-
version: 2
352351
test_and_release:
353352
jobs:
354353
- prodsec/secrets-scan:
355354
name: secrets-scan
356355
context: snyk-bot-slack
357-
channel: hammerhead-alerts
356+
channel: cli-alerts
358357

359358
- prepare-build:
360359
requires:
361360
- secrets-scan
362361

363362
- code-analysis:
364-
context: hammerhead-snyk-orb-snyk-creds
363+
context: devex_cli
365364
requires:
366365
- prepare-build
367366
filters:
368367
branches:
369-
ignore: master
368+
ignore: main
370369

371370
- test-node:
372371
context:
@@ -376,7 +375,7 @@ workflows:
376375
- prepare-build
377376
filters:
378377
branches:
379-
ignore: master
378+
ignore: main
380379

381380
- test-go:
382381
context:
@@ -386,7 +385,7 @@ workflows:
386385
- prepare-build
387386
filters:
388387
branches:
389-
ignore: master
388+
ignore: main
390389

391390
- test-legacy-tap:
392391
context:
@@ -396,7 +395,7 @@ workflows:
396395
- prepare-build
397396
filters:
398397
branches:
399-
ignore: master
398+
ignore: main
400399

401400
- build-special-artifacts:
402401
name: build fix & protect
@@ -477,7 +476,7 @@ workflows:
477476
context: team_hammerhead-cli
478477
filters:
479478
branches:
480-
ignore: master
479+
ignore: main
481480
requires:
482481
- build linux amd64
483482
test_snyk_command: ./binary-releases/snyk-linux
@@ -489,7 +488,7 @@ workflows:
489488
- team_hammerhead-cli
490489
filters:
491490
branches:
492-
ignore: master
491+
ignore: main
493492
requires:
494493
- build linux amd64
495494
executor: docker-amd64
@@ -502,7 +501,7 @@ workflows:
502501
- team_hammerhead-cli
503502
filters:
504503
branches:
505-
ignore: master
504+
ignore: main
506505
requires:
507506
- build linux arm64
508507
executor: docker-arm64
@@ -518,7 +517,7 @@ workflows:
518517
- team_hammerhead-cli
519518
filters:
520519
branches:
521-
ignore: master
520+
ignore: main
522521
requires:
523522
- build linux arm64
524523

@@ -529,7 +528,7 @@ workflows:
529528
- team_hammerhead-cli
530529
filters:
531530
branches:
532-
ignore: master
531+
ignore: main
533532
requires:
534533
- build alpine amd64
535534
executor: alpine
@@ -544,7 +543,7 @@ workflows:
544543
- team_hammerhead-cli
545544
filters:
546545
branches:
547-
ignore: master
546+
ignore: main
548547
requires:
549548
- build macOS arm64
550549
executor: macos-arm64
@@ -558,7 +557,7 @@ workflows:
558557
- team_hammerhead-cli
559558
filters:
560559
branches:
561-
ignore: master
560+
ignore: main
562561
requires:
563562
- build windows amd64
564563
executor: win-server2022-amd64
@@ -580,7 +579,7 @@ workflows:
580579
filters:
581580
branches:
582581
only:
583-
- master
582+
- main
584583
- '/.*e2e.*/'
585584

586585
- sign:
@@ -595,7 +594,7 @@ workflows:
595594
filters:
596595
branches:
597596
only:
598-
- master
597+
- main
599598
- '/.*e2e.*/'
600599

601600
- sign:
@@ -610,7 +609,7 @@ workflows:
610609
filters:
611610
branches:
612611
only:
613-
- master
612+
- main
614613
- '/.*e2e.*/'
615614

616615
- create_deployment_artifacts:
@@ -627,7 +626,7 @@ workflows:
627626
filters:
628627
branches:
629628
only:
630-
- master
629+
- main
631630
- '/.*e2e.*/'
632631

633632
- should-release:
@@ -638,7 +637,7 @@ workflows:
638637
filters:
639638
branches:
640639
only:
641-
- master
640+
- main
642641
- '/.*e2e.*/'
643642

644643
- pre-release:
@@ -649,7 +648,7 @@ workflows:
649648
filters:
650649
branches:
651650
only:
652-
- master
651+
- main
653652
- '/.*e2e.*/'
654653

655654
- npm-validation:
@@ -666,7 +665,7 @@ workflows:
666665
filters:
667666
branches:
668667
only:
669-
- master
668+
- main
670669
- '/.*e2e.*/'
671670

672671
- test-release:
@@ -694,7 +693,7 @@ workflows:
694693
filters:
695694
branches:
696695
only:
697-
- master
696+
- main
698697
- '/.*e2e.*/'
699698

700699
- test-release:
@@ -709,7 +708,7 @@ workflows:
709708
filters:
710709
branches:
711710
only:
712-
- master
711+
- main
713712
- '/.*e2e.*/'
714713

715714
- test-release:
@@ -724,7 +723,7 @@ workflows:
724723
filters:
725724
branches:
726725
only:
727-
- master
726+
- main
728727
- '/.*e2e.*/'
729728

730729
- release-s3:
@@ -753,7 +752,7 @@ workflows:
753752
- e2e fips tests (win-server2022-amd64)
754753
filters:
755754
branches:
756-
only: master
755+
only: main
757756

758757
- release-s3:
759758
name: upload latest
@@ -763,7 +762,7 @@ workflows:
763762
- upload preview
764763
filters:
765764
branches:
766-
only: master
765+
only: main
767766

768767
- release-github:
769768
name: upload github
@@ -773,7 +772,7 @@ workflows:
773772
filters:
774773
branches:
775774
only:
776-
- master
775+
- main
777776
- release-npm:
778777
name: upload npm
779778
context: team-hammerhead-common-deploy-tokens
@@ -782,7 +781,7 @@ workflows:
782781
filters:
783782
branches:
784783
only:
785-
- master
784+
- main
786785

787786
- trigger-building-snyk-images:
788787
name: Trigger building snyk-images
@@ -792,7 +791,7 @@ workflows:
792791
filters:
793792
branches:
794793
only:
795-
- master
794+
- main
796795

797796
####################################################################################################
798797
# JOBS
@@ -808,7 +807,9 @@ jobs:
808807
command: npm ci
809808
- run:
810809
name: Set version
811-
command: make binary-releases/version binary-releases/fips/version
810+
command: |
811+
make binary-releases/version binary-releases/fips/version
812+
make ts-cli-binaries/version BINARY_RELEASES_FOLDER_TS_CLI=ts-cli-binaries
812813
- run:
813814
# required for one unit test (ts-binary-wrapper/test/unit/common.spec.ts:15:30)
814815
# consider removing this run
@@ -821,6 +822,7 @@ jobs:
821822
root: .
822823
paths:
823824
- binary-releases/*
825+
- ts-cli-binaries/*
824826
- binary-releases/fips/*
825827
- node_modules/*
826828
- ts-binary-wrapper/*
@@ -836,7 +838,7 @@ jobs:
836838
command: |
837839
npm run lint
838840
pushd cliv2
839-
make lint
841+
make lint
840842
popd
841843
- snyk/scan:
842844
fail-on-issues: true
@@ -979,7 +981,7 @@ jobs:
979981
name: Running acceptance tests
980982
command: |
981983
<< parameters.pre_test_cmds >>
982-
npm run test:acceptance -- --selectProjects snyk
984+
npm run test:acceptance -- --selectProjects coreCli
983985
environment:
984986
TEST_SNYK_FIPS: << parameters.fips >>
985987
TEST_SNYK_COMMAND: << parameters.test_snyk_command >>

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Please check the boxes once done.
55
The pull request must:
66

77
- **Reviewer Documentation**
8-
- [ ] follow [CONTRIBUTING](https://github.com/snyk/cli/blob/master/CONTRIBUTING.md) rules
8+
- [ ] follow [CONTRIBUTING](https://github.com/snyk/cli/blob/main/CONTRIBUTING.md) rules
99
- [ ] be accompanied by a detailed description of the changes
1010
- [ ] contain a risk assessment of the change (Low | Medium | High) with regards to breaking existing functionality. A change e.g. of an underlying language plugin can completely break the functionality for that language, but appearing as only a version change in the dependencies.
1111
- [ ] highlight breaking API if applicable

.github/workflows/check-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Check Dependencies'
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [master, main]
66

77
jobs:
88
check-dependencies:

.github/workflows/danger-zone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Danger Zone'
22
on:
33
pull_request:
4-
branches: [master]
4+
branches: [master, main]
55

66
jobs:
77
build:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ tap-output
4646
.tap
4747
# Jest
4848
coverage
49+
test/fixtures/basic-swift/.build
50+
test/fixtures/basic-swift/Package.resolved

0 commit comments

Comments
 (0)