You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden Jenkinsfile against injection and permission issues
- Scope copyArtifactPermission to Foregin/* (was wildcard *)
- Use withEnv+single-quoted sh for dch to prevent BUILD_TAG injection
- Replace for/cat/awk mv loop with safe while IFS= read loop
with -- and option-injection guard
- Validate pkgName with regex before apt-get install
- Use withEnv+single-quoted sh for apt-get to prevent pkgName injection
- Remove trusted local.list after install block
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
0 commit comments