Skip to content

Commit

Permalink
Fix walk of target delegations to be DFS (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins authored Aug 24, 2024
1 parent facfd4f commit fc326d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
run: touch requirements.txt

- name: Run the TUF conformance tests
uses: theupdateframework/tuf-conformance@67f38b6718a25642fb489419260d0eddcef95a7a
uses: theupdateframework/tuf-conformance@2c8a0a73f2eea756ddc2e8b11077cb063aa221ed
with:
entrypoint: ${{ github.workspace }}/bin/tuf-conformance-entrypoint
artifact-name: "test repositories ${{ matrix.ruby }} ${{ matrix.os }}"
Expand Down
2 changes: 1 addition & 1 deletion lib/sigstore/tuf/updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def preorder_depth_first_walk(target_path)
visited_role_names = Set.new

while delegations_to_visit.any? && visited_role_names.size < @config.max_delegations
role_name, parent_role = delegations_to_visit.shift
role_name, parent_role = delegations_to_visit.pop
next if visited_role_names.include?(role_name)

targets = load_targets(role_name, parent_role)
Expand Down

0 comments on commit fc326d4

Please sign in to comment.