Skip to content
Snippets Groups Projects

Generate JWT for authentication and provide it to CI jobs

Merged Krasimir Angelov requested to merge 207125-ci-jwt-auth into master
1 unresolved thread
Files
2
+ 1
5
@@ -33,7 +33,7 @@ def initialize(build, ttl: nil)
self[:job_id] = build.id.to_s
self[:ref] = source_ref
self[:ref_type] = ref_type
self[:ref_protected] = ref_protected.to_s
self[:ref_protected] = build.protected.to_s
end
private
@@ -63,10 +63,6 @@ def source_ref
def ref_type
::Ci::BuildRunnerPresenter.new(build).ref_type
end
def ref_protected
project.protected_for?(source_ref)
end
end
end
end
Loading