Check for newlines and carriage return in artifact paths and name (#951)

* Check for newlines and carriage return in artifact paths and name

* Fix linting issue

* Update comments

* Add comment about spacing

* Remove extra space
This commit is contained in:
Konrad Pabjan
2021-12-01 16:31:37 -05:00
committed by GitHub
parent 4df5abb3ee
commit 88062ec473
6 changed files with 162 additions and 120 deletions
@@ -1,7 +1,7 @@
import * as fs from 'fs'
import {debug} from '@actions/core'
import {join, normalize, resolve} from 'path'
import {checkArtifactFilePath} from './utils'
import {checkArtifactFilePath} from './path-and-artifact-name-validation'
export interface UploadSpecification {
absoluteFilePath: string