Skip to content
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

Attestation #1376

Merged
merged 2 commits into from
Nov 10, 2024
Merged
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
11 changes: 10 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
jobs:
macos:
name: macOS Build
permissions:
id-token: write
contents: read
attestations: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -94,6 +98,12 @@ jobs:
sudo xcode-select --switch /Applications/Xcode_${{ matrix.XCODE_VERSION }}.app
./tools/ci_script_osx.sh . ${{ matrix.QT_VERSION }} ${{ matrix.GENERATOR }}

- name: Generate artifact attestation
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
uses: actions/attest-build-provenance@v1
with:
subject-path: 'gui/GPSBabel-*.dmg'

- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.
Expand All @@ -102,7 +112,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: Continuous-${{ runner.os }}
run: |
echo GITHUB_REF: $GITHUB_REF
./tools/uploadtool/upload_github.sh gui/GPSBabel-*.dmg

- name: 'Upload Artifacts'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:

snap:
name: snap Build
permissions:
id-token: write
contents: read
attestations: write
runs-on: ubuntu-latest
outputs:
snap-file: ${{ steps.build-snap.outputs.snap }}
Expand All @@ -106,6 +110,12 @@ jobs:
/snap/bin/gpsbabel -D3 || true
./testo -p /snap/bin/gpsbabel

- name: Generate artifact attestation
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ steps.build-snap.outputs.snap }}

- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:

windows:
name: windows Build
permissions:
id-token: write
contents: read
attestations: write
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -98,6 +102,12 @@ jobs:
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./testo 2>&1
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./test_encoding_utf8 2>&1

- name: Generate artifact attestation
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
uses: actions/attest-build-provenance@v1
with:
subject-path: 'bld/gui/GPSBabel-*-Setup.exe'

- name: Deploy
# This only handles continous releases now, for other events artifacts may be saved in
# the 'Upload Artifacts' step.
Expand Down