Skip to content

Commit a4d7848

Browse files
authored
CM-40753 - Add sync flow for Secrets and IaC (#80)
1 parent b313d77 commit a4d7848

File tree

9 files changed

+15
-19
lines changed

9 files changed

+15
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## [Unreleased]
66

7+
## [2.1.0] - 2024-10-07
8+
9+
- Add sync flow for Secrets and IaC
10+
711
## [2.0.1] - 2024-09-25
812

913
- Fix empty IaC scan results on Windows
@@ -121,6 +125,8 @@
121125

122126
The first public release of the plugin.
123127

128+
[2.1.0]: https://github.com/cycodehq/intellij-platform-plugin/releases/tag/v2.1.0
129+
124130
[2.0.1]: https://github.com/cycodehq/intellij-platform-plugin/releases/tag/v2.0.1
125131

126132
[2.0.0]: https://github.com/cycodehq/intellij-platform-plugin/releases/tag/v2.0.0
@@ -169,4 +175,4 @@ The first public release of the plugin.
169175

170176
[1.0.0]: https://github.com/cycodehq/intellij-platform-plugin/releases/tag/v1.0.0
171177

172-
[Unreleased]: https://github.com/cycodehq/intellij-platform-plugin/compare/v2.0.1...HEAD
178+
[Unreleased]: https://github.com/cycodehq/intellij-platform-plugin/compare/v2.1.0...HEAD

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = com.cycode.plugin
44
pluginName = Cycode
55
pluginRepositoryUrl = https://github.com/cycodehq/intellij-platform-plugin
66
# SemVer format -> https://semver.org
7-
pluginVersion = 2.0.1
7+
pluginVersion = 2.1.0
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 231

src/main/kotlin/com/cycode/plugin/Consts.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Consts {
2727
companion object {
2828
val PLUGIN_PATH = PathManager.getPluginsPath() + "/cycode-intellij-platform-plugin"
2929
val DEFAULT_CLI_PATH = getDefaultCliPath()
30-
const val REQUIRED_CLI_VERSION = "1.10.7"
30+
const val REQUIRED_CLI_VERSION = "1.11.0"
3131

3232
const val CYCODE_DOMAIN = "cycode.com"
3333

src/main/kotlin/com/cycode/plugin/components/settingsWindow/SettingsWindow.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class SettingsWindow {
2020

2121
private var scanOnSaveCheckbox = JBCheckBox(null, pluginSettings.scanOnSave)
2222

23-
private var scaSyncFlowCheckbox = JBCheckBox(null, pluginSettings.scaSyncFlow)
24-
2523
fun getComponent(): DialogPanel {
2624
val contentPanel = panel {
2725
group(CycodeBundle.message("settingsCliSectionTitle")) {
@@ -48,11 +46,6 @@ class SettingsWindow {
4846
cell(scanOnSaveCheckbox)
4947
}
5048
}
51-
group(CycodeBundle.message("settingsExperimentalSectionTitle")) {
52-
row(CycodeBundle.message("settingsScaSyncFlowCheckbox")) {
53-
cell(scaSyncFlowCheckbox)
54-
}
55-
}
5649
}
5750

5851
return contentPanel
@@ -66,7 +59,6 @@ class SettingsWindow {
6659
cliAppUrlTextField.text,
6760
cliAdditionalParamsTextField.text,
6861
scanOnSaveCheckbox.isSelected,
69-
scaSyncFlowCheckbox.isSelected,
7062
)
7163
}
7264

src/main/kotlin/com/cycode/plugin/services/CliService.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,15 @@ class CliService(private val project: Project) {
190190

191191
private fun getCliScanOptions(scanType: CliScanType): Array<String> {
192192
val options = mutableListOf<String>()
193-
if (scanType == CliScanType.Sca && pluginSettings.scaSyncFlow) {
193+
194+
if (scanType != CliScanType.Sast) {
194195
options.add("--sync")
196+
}
197+
198+
if (scanType == CliScanType.Sca) {
195199
options.add("--no-restore")
196200
}
201+
197202
return options.toTypedArray()
198203
}
199204

src/main/kotlin/com/cycode/plugin/services/CycodePersistentSettingsService.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class CycodePersistentSettingsService : PersistentStateComponent<CycodePersisten
2020

2121
var scanOnSave: Boolean = true
2222

23-
var scaSyncFlow: Boolean = true
24-
2523
override fun getState(): CycodePersistentSettingsService {
2624
return this
2725
}
@@ -38,7 +36,6 @@ class CycodePersistentSettingsService : PersistentStateComponent<CycodePersisten
3836
cliAppUrl,
3937
cliAdditionalParams,
4038
scanOnSave,
41-
scaSyncFlow,
4239
)
4340
}
4441
}

src/main/kotlin/com/cycode/plugin/settings/ApplicationSettingsConfigurable.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class ApplicationSettingsConfigurable(val project: Project) : SearchableConfigur
5757
pluginSettings.cliAutoManaged = newSettings.cliAutoManaged
5858
pluginSettings.cliAdditionalParams = newSettings.cliAdditionalParams
5959
pluginSettings.scanOnSave = newSettings.scanOnSave
60-
pluginSettings.scaSyncFlow = newSettings.scaSyncFlow
6160

6261
if (isValidCliPath(newSettings.cliPath)) {
6362
pluginSettings.cliPath = newSettings.cliPath

src/main/kotlin/com/cycode/plugin/settings/Settings.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ data class Settings(
77
val cliAppUrl: String,
88
val cliAdditionalParams: String,
99
val scanOnSave: Boolean,
10-
val scaSyncFlow: Boolean,
1110
)

src/main/resources/messages/CycodeBundle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ sentryReporting=Cycode is reporting the problem...
7575
settingsCliSectionTitle=Cycode CLI settings
7676
settingsOnPremiseSectionTitle=On-premise settings
7777
settingsIdeSectionTitle=IDE settings
78-
settingsExperimentalSectionTitle=Experimental settings
7978
settingsCliAutoManagedCheckbox=Enable executable auto-management
8079
settingsScanOnSaveCheckbox=Enable Scan on Save
81-
settingsScaSyncFlowCheckbox=Enable SCA sync flow
8280
settingsCliPathLabel=Path to executable:
8381
settingsCliApiUrlLabel=API URL:
8482
settingsCliAppUrlLabel=APP URL:

0 commit comments

Comments
 (0)