Skip to content

Commit 5baa508

Browse files
committed
Update Rakefile
1 parent 54720b2 commit 5baa508

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/sass/Rakefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ end
4646

4747
file 'dart-sass/sass' do
4848
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')
5050
mv File.absolute_path('ext/sass/dart-sass', installer.gem_dir), 'dart-sass'
5151
end
5252
rescue StandardError
5353
archive = fetch(SassConfig.dart_sass)
54-
gh_attestation_verify(archive, 'sass/dart-sass')
54+
gh_attestation_verify(archive, repo: 'sass/dart-sass')
5555
unarchive archive
5656
rm archive
5757
end
@@ -428,9 +428,9 @@ module FileUtils
428428
rm_rf install_dir unless Rake::FileUtilsExt.nowrite_flag
429429
end
430430

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
434434
end
435435
end
436436
end

0 commit comments

Comments
 (0)