Explorar o código

CI: wait up to 5 h 45 min for the SignPath release approval

Ka1-S hai 2 semanas
pai
achega
fdfe73139
Modificáronse 2 ficheiros con 7 adicións e 5 borrados
  1. 6 4
      .github/workflows/release.yml
  2. 1 1
      docs/CODE_SIGNING.md

+ 6 - 4
.github/workflows/release.yml

@@ -135,8 +135,10 @@ jobs:
           if-no-files-found: warn
           if-no-files-found: warn
 
 
   # ---------------------------------------------------------------------------------------------
   # ---------------------------------------------------------------------------------------------
-  # SignPath code signing: PLACEHOLDER, disabled until the SignPath Foundation approves LYNX.
-  # To enable (docs/CODE_SIGNING.md):
+  # SignPath code signing (docs/CODE_SIGNING.md). Build and signing are separate jobs: with the
+  # release-signing policy (SignPath Foundation certificate) every request waits for a manual
+  # approval in the SignPath web app; test-signing is approved automatically.
+  # Settings:
   #   repository secret    SIGNPATH_API_TOKEN        API token of the SignPath CI user (submitter role)
   #   repository secret    SIGNPATH_API_TOKEN        API token of the SignPath CI user (submitter role)
   #   repository variable  SIGNPATH_ORGANIZATION_ID  organization id shown in the SignPath web app
   #   repository variable  SIGNPATH_ORGANIZATION_ID  organization id shown in the SignPath web app
   #   repository variable  SIGNPATH_PROJECT_SLUG     project slug (default: LYNX)
   #   repository variable  SIGNPATH_PROJECT_SLUG     project slug (default: LYNX)
@@ -148,7 +150,7 @@ jobs:
     needs: build
     needs: build
     if: vars.SIGNPATH_ENABLED == 'true'
     if: vars.SIGNPATH_ENABLED == 'true'
     runs-on: ubuntu-24.04
     runs-on: ubuntu-24.04
-    timeout-minutes: 200
+    timeout-minutes: 355  # GitHub-hosted jobs stop at 6 h
     permissions:
     permissions:
       actions: read     # SignPath reads the job details and downloads the unsigned artifact
       actions: read     # SignPath reads the job details and downloads the unsigned artifact
       contents: read
       contents: read
@@ -162,7 +164,7 @@ jobs:
           signing-policy-slug: ${{ vars.SIGNPATH_POLICY_SLUG || 'release-signing' }}
           signing-policy-slug: ${{ vars.SIGNPATH_POLICY_SLUG || 'release-signing' }}
           github-artifact-id: ${{ needs.build.outputs.artifact-id }}
           github-artifact-id: ${{ needs.build.outputs.artifact-id }}
           wait-for-completion: true
           wait-for-completion: true
-          wait-for-completion-timeout-in-seconds: 10800   # a release request waits up to 3 h for manual approval
+          wait-for-completion-timeout-in-seconds: 20700   # a release request waits up to 5 h 45 min for the manual approval
           output-artifact-directory: signed
           output-artifact-directory: signed
 
 
       - name: Upload signed LYNX.exe
       - name: Upload signed LYNX.exe

+ 1 - 1
docs/CODE_SIGNING.md

@@ -99,7 +99,7 @@ English and `PT` strings) remove "pending approval", and drop the SmartScreen no
    `git tag vX.Y.Z-alpha && git push origin vX.Y.Z-alpha`.
    `git tag vX.Y.Z-alpha && git push origin vX.Y.Z-alpha`.
 2. The `Release` workflow starts; the `sign` job submits a signing request and waits.
 2. The `Release` workflow starts; the `sign` job submits a signing request and waits.
 3. Open the request in <https://app.signpath.io> (you also get an e-mail), check that it comes from the expected
 3. Open the request in <https://app.signpath.io> (you also get an e-mail), check that it comes from the expected
-   commit and workflow run, and click **Approve** within 3 hours (otherwise the job times out; re-run it from the Actions tab).
+   commit and workflow run, and click **Approve** within 5 h 45 min (GitHub stops a hosted job at 6 h; if it times out, re-run the `sign` job from the Actions tab and then the jobs after it).
 4. The `package` job self-tests the signed exe and attaches `LYNX.exe`, the zip and `SHA256SUMS.txt` to the release
 4. The `package` job self-tests the signed exe and attaches `LYNX.exe`, the zip and `SHA256SUMS.txt` to the release
    (a draft is created if the release does not exist yet). Edit the notes and publish.
    (a draft is created if the release does not exist yet). Edit the notes and publish.