Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a step in the repository initialization script to set root.json permissions to 644 and includes a debug directory listing to verify outputs. Flow diagram for updated repository initialization scriptflowchart TD
A["Delete old files"] --> B["Set 644 permissions on root.json"]
B --> C["List contents of OUTDIR (debug)"]
C --> D["Copy TUF repository to final location"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Compliance Guide 🔍(Compliance updated until commit fbbb9f1)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 30dbf16
|
||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `rhtas/tuf-repo-init.sh:319-320` </location>
<code_context>
+echo "Setting 644 permissions on public repository files ..."
+chmod 644 "${OUTDIR}/root.json"
+
+#Test
+ls -Rla "${OUTDIR}"
</code_context>
<issue_to_address>
**suggestion:** Remove or clarify the '#Test' comment for production readiness.
If ls is only needed for debugging, remove it or control its execution with a verbosity flag to keep production output clean.
```suggestion
if [ "${VERBOSE}" = "true" ]; then
echo "Verbose mode enabled: listing contents of ${OUTDIR} ..."
ls -Rla "${OUTDIR}"
fi
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
/retest |
Signed-off-by: SequeI <asiek@redhat.com>
Signed-off-by: SequeI <asiek@redhat.com>
Signed-off-by: SequeI <asiek@redhat.com>
* chore: swap sha2 usage for openssl * fix: correct permissions on root.json (#133) Signed-off-by: SequeI <asiek@redhat.com> * ci: add fips check * remove unused import --------- Signed-off-by: SequeI <asiek@redhat.com> Co-authored-by: JasonPowr <japower@redhat.com> Co-authored-by: Aleks <121458075+SequeI@users.noreply.github.com>
Summary by Sourcery
Set correct permissions on root.json in the TUF repository initialization script and add a directory listing for verification
Bug Fixes:
Enhancements: