Skip to content

Commit a69e7be

Browse files
Merge main into feature/model-selection
2 parents 00309bb + 4b41495 commit a69e7be

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/qodana-check-duplicatedcode.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
tool-cache: false
3535
large-packages: false
3636
- name: 'Qodana Scan'
37-
uses: JetBrains/qodana-action@v2024.2.3
37+
uses: JetBrains/qodana-action@v2025.1.1
3838
env:
3939
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
4040
with:
4141
# --config points to the DuplicatedCode-only Qodana config
4242
args:
43-
--config,${{ github.workspace }}/qodana-configs/duplicated-code/qodana.yaml
43+
--config,qodana-configs/duplicated-code/qodana.yaml
4444
cache-default-branch-only: true
4545
# pr-mode off means that the whole repo should be checked for duplicate code, instead of just copy/pastes within the PR
4646
pr-mode: false

.github/workflows/qodana-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
tool-cache: false
3535
large-packages: false
3636
- name: 'Qodana Scan'
37-
uses: JetBrains/qodana-action@v2024.2.3
37+
uses: JetBrains/qodana-action@v2025.1.1
3838
env:
3939
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
4040
with:

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs
463463

464464
val node = if (SystemInfo.isWindows) "node.exe" else "node"
465465
val nodePath = getNodeRuntimePath(artifact.resolve(node))
466+
val emptyFile = Files.createTempFile("empty", null).toAbsolutePath().toString()
466467

467468
val cmd = NodeExePatcher.patch(nodePath)
468469
.withParameters(
@@ -476,6 +477,9 @@ private class AmazonQServerInstance(private val project: Project, private val cs
476477
put("NODE_EXTRA_CA_CERTS", it)
477478
}
478479

480+
put("AWS_CONFIG_FILE", emptyFile)
481+
put("AWS_SHARED_CREDENTIALS_FILE", emptyFile)
482+
479483
// assume default endpoint will pick correct proxy if needed
480484
val qUri = URI(QDefaultServiceConfig.ENDPOINT)
481485
val proxy = JdkProxyProvider.getInstance().proxySelector.select(qUri)

0 commit comments

Comments
 (0)