Skip to content

Commit

Permalink
fix vulnerable inputs and branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticfalcon committed Jun 18, 2024
1 parent d642ebc commit c406f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12873,7 +12873,7 @@ const { owner, repo } = Github.context.repo;
async function run() {
try {
// Validate envs and inputs
if (/^([\w-]+)$/.test(versionPrefix) === false) {
if (versionPrefix !== "" && /^([\w-]+)$/.test(versionPrefix) === false) {
core.setFailed('Invalid version prefix.');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const {owner, repo} = Github.context.repo
async function run() {
try {
// Validate envs and inputs
if(/^([\w-]+)$/.test(versionPrefix) === false) {
if(versionPrefix !== "" && /^([\w-]+)$/.test(versionPrefix) === false) {
core.setFailed('Invalid version prefix.');
return
}
Expand Down

0 comments on commit c406f97

Please sign in to comment.