MinoruSekine / setup-scoop

GitHub Actions to install apps to Windows runner by scoop
https://github.com/marketplace/actions/setup-scoop
GNU Affero General Public License v3.0
11 stars 7 forks source link

Support adding specific bucket(s) #10

Closed MinoruSekine closed 2 years ago

MinoruSekine commented 2 years ago

7

Background

MinoruSekine commented 2 years ago

For prevention of injection attacks, it will be useful to validate string to specify bucket(s) with codes like following.

if('extras nonportable' -inotmatch '^(\w+\s*)+$') {Write-Error 'Illegal bucket(s) name.' -ErrorAction Stop}
MinoruSekine commented 2 years ago

Now I've decided only known buckets will be supported in this issue 😃

MinoruSekine commented 2 years ago

Split string by spaces into array on PowerShell.