Skip to content

feat: add flatpak validation workflow - #1135

Merged
renner0e merged 6 commits into
ublue-os:mainfrom
inffy:flatpak-validation
Oct 23, 2025
Merged

feat: add flatpak validation workflow#1135
renner0e merged 6 commits into
ublue-os:mainfrom
inffy:flatpak-validation

Conversation

@inffy

@inffy inffy commented Oct 22, 2025

Copy link
Copy Markdown
Member

No description provided.

@inffy
inffy marked this pull request as ready for review October 22, 2025 19:19
@inffy
inffy requested a review from NiHaiden as a code owner October 22, 2025 19:19
Copilot AI review requested due to automatic review settings October 22, 2025 19:19
@inffy
inffy enabled auto-merge October 22, 2025 19:19
@inffy

inffy commented Oct 22, 2025

Copy link
Copy Markdown
Member Author

Think this fine to go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces automated validation for Flatpak application IDs listed in the repository's flatpak configuration files. The workflow ensures that all referenced Flatpak applications exist in the Flathub repository before they are merged.

  • Adds a new GitHub Actions workflow that triggers on changes to flatpak configuration files
  • Validates each Flatpak ID against the Flathub remote repository
  • Uses GitHub Actions grouping for better log readability

Comment thread .github/workflows/validate-flatpaks.yml Outdated
find "flatpaks" -iname '*\.list*' -print0 | \
while IFS= read -r -d '' flatpaks_file ; do \
echo "::group:: ===$(basename "$flatpaks_file")==="
grep -v "#.*" "$flatpaks_file" | \

Copilot AI Oct 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grep pattern '#.' will only filter lines that start with '#'. Lines with comments after content (e.g., 'app.id # comment') will not be properly filtered. Use 'sed 's/#.//' to remove inline comments or adjust the pattern to '^[[:space:]]*#' to only skip comment-only lines.

Suggested change
grep -v "#.*" "$flatpaks_file" | \
sed 's/#.*//' "$flatpaks_file" | grep -v '^[[:space:]]*$' | \

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/validate-flatpaks.yml Outdated
while IFS= read -r -d '' flatpaks_file ; do \
echo "::group:: ===$(basename "$flatpaks_file")==="
grep -v "#.*" "$flatpaks_file" | \
while read -r flatpak ; do \

Copilot AI Oct 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty lines from the grep output will cause 'flatpak remote-info' to fail with an invalid argument. Add a check to skip empty lines: 'while read -r flatpak ; do [[ -n "$flatpak" ]] || continue'.

Suggested change
while read -r flatpak ; do \
while read -r flatpak ; do \
[[ -n "$flatpak" ]] || continue \

Copilot uses AI. Check for mistakes.
@renner0e
renner0e disabled auto-merge October 23, 2025 16:48
@renner0e
renner0e merged commit 2246f86 into ublue-os:main Oct 23, 2025
1 of 17 checks passed
@inffy
inffy deleted the flatpak-validation branch November 2, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants