-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Verify the integrity of the ubuntu repo
- Loading branch information
1 parent
be0fe5e
commit b8c86d7
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: CI | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
pull_request: null | ||
jobs: | ||
ubuntu_verify_repo: | ||
uses: ./.github/workflows/ci_ubuntu_verify_repo.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI ubuntu verify repo | ||
'on': | ||
workflow_call: null | ||
jobs: | ||
regeneration_is_clean: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
- name: Regenerate Packages | ||
run: dpkg-scanpackages --multiversion . > Packages | ||
working-directory: ./ubuntu/ | ||
- name: Verify Packages is up to date | ||
run: git diff --exit-code | ||
working-directory: ./ubuntu/ | ||
- name: Regenerate Packages.gz | ||
run: gzip -k -f Packages --no-name | ||
working-directory: ./ubuntu/ | ||
- name: Verify Packages.gz is up to date | ||
run: git diff --exit-code | ||
working-directory: ./ubuntu/ | ||
- name: Verify sha512 sums in the Release file except for itself | ||
run: | | ||
awk '/^SHA512:/ {flag=1; next} /^$/ {flag=0} flag && $3 != "Release" {print}' Release | while read -r checksum size file; do | ||
if [ "$(sha512sum "$file" | awk '{print $1}')" != "$checksum" ]; then | ||
exit 1 | ||
fi | ||
done | ||
working-directory: ./ubuntu/ | ||
- name: Try to import the pubkey | ||
run: gpg --import burfeind_jan-niklas.gpg | ||
working-directory: ./ubuntu/ | ||
- name: Verify Release.gpg | ||
run: gpg --verify Release.gpg Release | ||
working-directory: ./ubuntu/ | ||
- name: Verify InRelease | ||
run: gpg --verify InRelease | ||
working-directory: ./ubuntu/ |