Skip to content

Commit 69042a6

Browse files
Merge pull request #1732 from forcedotcom/release-4.9.0
RELEASE @W-17615470@: Conducting 4.9.0 release
2 parents b5377db + f8909ec commit 69042a6

File tree

5 files changed

+84
-16
lines changed

5 files changed

+84
-16
lines changed

.github/workflows/create-release-branch.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
git push --set-upstream origin $INTERIM_BRANCH_NAME
5959
# Update dependencies.
6060
- run: |
61-
yarn upgrade
6261
node tools/UpdateRetireJsVulns.js
6362
# Use the GraphQL API to create a signed commit with the various changes.
6463
- name: Commit to interim branch
@@ -70,12 +69,11 @@ jobs:
7069
MESSAGE="Preparing for v$NEW_VERSION release."
7170
# GraphQL needs the latest versions of the files we changed, as Base64 encoded strings.
7271
NEW_PACKAGE="$(cat package.json | base64)"
73-
NEW_YARN_LOCK="$(cat yarn.lock | base64)"
7472
NEW_RETIREJS_VULNS="$(cat retire-js/RetireJsVulns.json | base64)"
7573
gh api graphql -F message="$MESSAGE" -F oldOid=`git rev-parse HEAD` -F branch="$BRANCH" \
76-
-F newPackage="$NEW_PACKAGE" -F newYarnLock="$NEW_YARN_LOCK" -F newRetireJsVulns="$NEW_RETIREJS_VULNS" \
74+
-F newPackage="$NEW_PACKAGE" -F newRetireJsVulns="$NEW_RETIREJS_VULNS" \
7775
-f query='
78-
mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!, $newYarnLock: Base64String!, $newRetireJsVulns: Base64String!) {
76+
mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!, $newRetireJsVulns: Base64String!) {
7977
createCommitOnBranch(input: {
8078
branch: {
8179
repositoryNameWithOwner: "forcedotcom/sfdx-scanner",
@@ -89,9 +87,6 @@ jobs:
8987
{
9088
path: "package.json",
9189
contents: $newPackage
92-
}, {
93-
path: "yarn.lock",
94-
contents: $newYarnLock
9590
}, {
9691
path: "retire-js/RetireJsVulns.json",
9792
contents: $newRetireJsVulns

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/sfdx-scanner",
33
"description": "Static code scanner that applies quality and security rules to Apex code, and provides feedback.",
4-
"version": "4.8.0",
4+
"version": "4.9.0",
55
"author": "Salesforce Code Analyzer Team",
66
"bugs": "https://github.com/forcedotcom/sfdx-scanner/issues",
77
"dependencies": {
@@ -143,13 +143,13 @@
143143
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme && oclif lock && npm shrinkwrap",
144144
"postpack": "rm -f oclif.manifest.json oclif.lock npm-shrinkwrap.json",
145145
"lint-typescript": "eslint ./src --ext .ts --max-warnings 0",
146-
"test": "./gradlew test jacocoTestCoverageVerification && nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"",
147-
"test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"",
146+
"test": "./gradlew test jacocoTestCoverageVerification && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"",
147+
"test-quiet": "cross-env SFGE_LOGGING=false ./gradlew test jacocoTestCoverageVerification && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 --retries 5 \"./test/**/*.test.ts\"",
148148
"test-cli-messaging": "./gradlew cli-messaging:test cli-messaging:jacocoTestCoverageVerification",
149149
"test-pmd-cataloger": "./gradlew pmd-cataloger:test pmd-cataloger:jacocoTestCoverageVerification",
150150
"test-sfge": "./gradlew sfge:test sfge:jacocoTestCoverageVerification",
151151
"test-sfge-quiet": "cross-env SFGE_LOGGING=false ./gradlew sfge:test sfge:jacocoTestCoverageVerification",
152-
"test-typescript": "tsc -b && nyc mocha --timeout 60000 \"./test/**/*.test.ts\"",
152+
"test-typescript": "tsc -b && cross-env NODE_OPTIONS=--no-experimental-strip-types nyc mocha --timeout 60000 \"./test/**/*.test.ts\"",
153153
"version": "oclif readme && git add README.md"
154154
}
155155
}

pmd7/build.gradle.kts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
}
1111

1212
// Keep this in sync with src/Constants.ts > PMD7_VERSION
13-
var pmd7Version = "7.8.0"
13+
var pmd7Version = "7.9.0"
1414

1515
val pmdDist7Dir = "$buildDir/../../dist/pmd7"
1616

@@ -26,6 +26,18 @@ dependencies {
2626
implementation("net.sourceforge.pmd:pmd-xml:$pmd7Version")
2727
}
2828

29+
// TEMPORARY - FOR SOME REASON WHEN UPGRADING TO PMD 7.9.0, THE TRANSITIVE DEPENDENCY:
30+
// io.github.apex-dev-tools:apex-parser
31+
// IS GETTING PULLED IN AS 4.3.1 INSTEAD OF THE LISTED 4.3.0 AND IT SEEMS TO HAVE A BUG: A MISSING DEPENDENCY LISTED.
32+
// SO WE SHOULD FORCE 4.3.0 TO GET PULLED IN INSTEAD UNTIL THIS IS FIXED.
33+
// See https://github.com/pmd/pmd/issues/5456
34+
// TODO: As soon as the pmd folks fix this ^... we should remove this workaround:
35+
configurations.all {
36+
resolutionStrategy {
37+
force("io.github.apex-dev-tools:apex-parser:4.3.0")
38+
}
39+
}
40+
2941
tasks.register<Copy>("copyDependencies") {
3042
from(configurations.runtimeClasspath)
3143
into("$pmdDist7Dir/lib")

retire-js/RetireJsVulns.json

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4957,8 +4957,7 @@
49574957
"identifiers": {
49584958
"summary": "Regular Expression Denial of Service (ReDoS), Affecting moment package, versions >=2.18.0 <2.29.4",
49594959
"CVE": [
4960-
"CVE-2022-31129",
4961-
"CVE-2023-22467"
4960+
"CVE-2022-31129"
49624961
],
49634962
"githubID": "GHSA-wc69-rhjr-hc9g"
49644963
},
@@ -6815,6 +6814,27 @@
68156814
"https://github.com/vercel/next.js"
68166815
]
68176816
},
6817+
{
6818+
"atOrAbove": "13.0.0",
6819+
"below": "13.5.8",
6820+
"cwe": [
6821+
"CWE-770"
6822+
],
6823+
"severity": "medium",
6824+
"identifiers": {
6825+
"summary": "Next.js Allows a Denial of Service (DoS) with Server Actions",
6826+
"CVE": [
6827+
"CVE-2024-56332"
6828+
],
6829+
"githubID": "GHSA-7m27-7ghc-44w9"
6830+
},
6831+
"info": [
6832+
"https://github.com/advisories/GHSA-7m27-7ghc-44w9",
6833+
"https://github.com/vercel/next.js/security/advisories/GHSA-7m27-7ghc-44w9",
6834+
"https://nvd.nist.gov/vuln/detail/CVE-2024-56332",
6835+
"https://github.com/vercel/next.js"
6836+
]
6837+
},
68186838
{
68196839
"atOrAbove": "13.4.0",
68206840
"below": "14.1.1",
@@ -6906,6 +6926,48 @@
69066926
"https://github.com/vercel/next.js",
69076927
"https://github.com/vercel/next.js/releases/tag/v14.2.15"
69086928
]
6929+
},
6930+
{
6931+
"atOrAbove": "14.0.0",
6932+
"below": "14.2.21",
6933+
"cwe": [
6934+
"CWE-770"
6935+
],
6936+
"severity": "medium",
6937+
"identifiers": {
6938+
"summary": "Next.js Allows a Denial of Service (DoS) with Server Actions",
6939+
"CVE": [
6940+
"CVE-2024-56332"
6941+
],
6942+
"githubID": "GHSA-7m27-7ghc-44w9"
6943+
},
6944+
"info": [
6945+
"https://github.com/advisories/GHSA-7m27-7ghc-44w9",
6946+
"https://github.com/vercel/next.js/security/advisories/GHSA-7m27-7ghc-44w9",
6947+
"https://nvd.nist.gov/vuln/detail/CVE-2024-56332",
6948+
"https://github.com/vercel/next.js"
6949+
]
6950+
},
6951+
{
6952+
"atOrAbove": "15.0.0",
6953+
"below": "15.1.2",
6954+
"cwe": [
6955+
"CWE-770"
6956+
],
6957+
"severity": "medium",
6958+
"identifiers": {
6959+
"summary": "Next.js Allows a Denial of Service (DoS) with Server Actions",
6960+
"CVE": [
6961+
"CVE-2024-56332"
6962+
],
6963+
"githubID": "GHSA-7m27-7ghc-44w9"
6964+
},
6965+
"info": [
6966+
"https://github.com/advisories/GHSA-7m27-7ghc-44w9",
6967+
"https://github.com/vercel/next.js/security/advisories/GHSA-7m27-7ghc-44w9",
6968+
"https://nvd.nist.gov/vuln/detail/CVE-2024-56332",
6969+
"https://github.com/vercel/next.js"
6970+
]
69096971
}
69106972
],
69116973
"extractors": {
@@ -7867,7 +7929,6 @@
78677929
"identifiers": {
78687930
"summary": "PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF",
78697931
"CVE": [
7870-
"CVE-2024-34342",
78717932
"CVE-2024-4367"
78727933
],
78737934
"githubID": "GHSA-wgrm-67xf-hhpq"

src/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import os = require('os');
22
import path = require('path');
33

44
// Keep this in sync with <repoRoot>/pmd7/build.gradle.kts > pmd7Version
5-
export const PMD7_VERSION = '7.8.0';
5+
export const PMD7_VERSION = '7.9.0';
66

77
export const PMD_APPEXCHANGE_RULES_VERSION = '0.16';
88

0 commit comments

Comments
 (0)