Skip to content

Point to tuf-conformance release #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
run: bin/rake bin/tuf-conformance-entrypoint.xfails

- name: Run the TUF conformance tests
uses: theupdateframework/tuf-conformance@dee4e23533d7a12a6394d96b59b3ea0aa940f9bf
uses: theupdateframework/tuf-conformance@9bfc222a371e30ad5511eb17449f68f855fb9d8f # v2.3.0
with:
entrypoint: ${{ github.workspace }}/bin/tuf-conformance-entrypoint
artifact-name: "test repositories ${{ matrix.ruby }} ${{ matrix.os }}"
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1
3.4.2
9 changes: 9 additions & 0 deletions bin/tuf-conformance-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,14 @@ end
ARGV.prepend("tuf")
ARGV[2, 0] = args

if ENV.fetch("FAKETIME", nil) &&
!ENV["DYLD_INSERT_LIBRARIES"].to_s.include?("libfaketime") && !ENV["LD_PRELOAD"].to_s.include?("libfaketime")
Time.singleton_class.prepend(Module.new do
def now
super + ENV["FAKETIME"].to_f
end
end)
end

require "sigstore/cli"
Sigstore::CLI.start(ARGV)
4 changes: 4 additions & 0 deletions lib/sigstore/tuf/updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def download_target(target_info, filepath = nil, target_base_url = nil)
target_base_url ||= @target_base_url
raise ArgumentError, "No target_base_url set" unless target_base_url

if (cached_target = find_cached_target(target_info, filepath))
return cached_target
end

filepath ||= generate_target_file_path(target_info)

target_filepath = target_info.path
Expand Down
Loading