Skip to content

Commit

Permalink
[SECURITY-2495]
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslavafenkin committed Jun 19, 2024
1 parent 468b97b commit ade8f1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.361.4</jenkins.version>
<jenkins.version>2.426.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
</properties>

Expand All @@ -76,8 +76,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.361.x</artifactId>
<version>2102.v854b_fec19c92</version>
<artifactId>bom-2.426.x</artifactId>
<version>2961.v1f472390972e</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -88,6 +88,8 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<!-- TODO: remove once this version is in bom -->
<version>1344.v5a_3f65a_1e173</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public FileCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull S
String name = file != null ? file.getName() : "";
if (name.length() > 0) {
this.fileName = name.replaceFirst("^.+[/\\\\]", "");
this.secretBytes = SecretBytes.fromBytes(file.get());
this.secretBytes = SecretBytes.fromRawBytes(file.get());
} else {
if (secretBytes == null) {
throw new IllegalArgumentException("No content provided or resolved.");
Expand Down

0 comments on commit ade8f1d

Please sign in to comment.