gowalk-cicd 1.0.201 → 1.0.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Reviewed build-only recipes. Names alone never authorize candidate execution.
|
|
2
|
-
const RUBY =
|
|
2
|
+
const RUBY = new Set([
|
|
3
|
+
'ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b',
|
|
4
|
+
'ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8',
|
|
5
|
+
]);
|
|
3
6
|
// The optional grep drops beta and release-candidate Xcodes, whose builds App Store Connect refuses.
|
|
4
7
|
const XCODE = /^XCODE_PATH=\$\(ls -d \/Applications\/Xcode_\d+\*\.app (?:\| grep -viE 'beta\|release_candidate\|_rc' )?\| sort -V \| tail -1\)\n/;
|
|
5
8
|
const XCODE_END = 'sudo xcode-select -s "$XCODE_PATH/Contents/Developer"\nxcodebuild -version\nswift --version\n';
|
|
@@ -13,9 +16,10 @@ const SDK = /^\s*"\$ANDROID_HOME\/cmdline-tools\/latest\/bin\/sdkmanager" 'platf
|
|
|
13
16
|
export function reviewedBuildStep(step) {
|
|
14
17
|
const allowed = ['name', 'id', 'uses', 'with', 'run', 'if', 'shell'];
|
|
15
18
|
if (!step || Object.keys(step).some(key => !allowed.includes(key))) return false;
|
|
16
|
-
if (step.uses
|
|
19
|
+
if (RUBY.has(step.uses) && !step.run) {
|
|
17
20
|
return Object.entries(step.with || {}).every(([key, value]) =>
|
|
18
|
-
|
|
21
|
+
key === 'bundler-cache' ? value === false
|
|
22
|
+
: ['ruby-version', 'bundler'].includes(key) && /^\d+(?:\.\d+){0,2}$/.test(String(value)));
|
|
19
23
|
}
|
|
20
24
|
if (step.uses || step.with || step.shell && step.shell !== 'bash' || typeof step.run !== 'string') return false;
|
|
21
25
|
return XCODE.test(step.run) && step.run.replace(XCODE, '') === XCODE_END
|
|
Binary file
|