|
46 | 46 |
|
47 | 47 | file 'dart-sass/sass' do |
48 | 48 | gem_install 'sass-embedded', SassConfig.gem_version, SassConfig.gem_platform do |installer| |
49 | | - gh_attestation_verify(installer.gem, 'sass-contrib/sass-embedded-host-ruby') |
| 49 | + gh_attestation_verify(installer.gem, repo: 'sass-contrib/sass-embedded-host-ruby') |
50 | 50 | mv File.absolute_path('ext/sass/dart-sass', installer.gem_dir), 'dart-sass' |
51 | 51 | end |
52 | 52 | rescue StandardError |
53 | 53 | archive = fetch(SassConfig.dart_sass) |
54 | | - gh_attestation_verify(archive, 'sass/dart-sass') |
| 54 | + gh_attestation_verify(archive, repo: 'sass/dart-sass') |
55 | 55 | unarchive archive |
56 | 56 | rm archive |
57 | 57 | end |
@@ -428,9 +428,9 @@ module FileUtils |
428 | 428 | rm_rf install_dir unless Rake::FileUtilsExt.nowrite_flag |
429 | 429 | end |
430 | 430 |
|
431 | | - def gh_attestation_verify(path, repo) |
432 | | - if SassConfig.development? && system('gh', 'auth', 'status', '--hostname', 'github.com', %i[out err] => File::NULL) |
433 | | - sh 'gh', 'attestation', 'verify', path, '--hostname', 'github.com', '--repo', repo |
| 431 | + def gh_attestation_verify(path, repo:, hostname: 'github.com') |
| 432 | + if SassConfig.development? && system('gh', 'auth', 'status', '--hostname', hostname, %i[out err] => File::NULL) |
| 433 | + sh 'gh', 'attestation', 'verify', path, '--hostname', hostname, '--repo', repo |
434 | 434 | end |
435 | 435 | end |
436 | 436 | end |
|
0 commit comments