@@ -451,7 +451,7 @@ jobs:
451451
452452 - name : upload cache staging artifact
453453 if : ${{ always() && steps.cache_staging_check.outputs.has_files == 'true' }}
454- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
454+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
455455 with :
456456 name : cache-staging
457457 path : cache-staging/
@@ -574,12 +574,14 @@ jobs:
574574 - name : Generate lean-pr-testing app token
575575 if : ${{ always() && github.repository == 'leanprover-community/mathlib4-nightly-testing' && (startsWith(github.ref_name, 'lean-pr-testing-') || startsWith(github.ref_name, 'batteries-pr-testing-')) }}
576576 id : lean-pr-testing-token
577- uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
577+ uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
578578 with :
579- app-id : ${{ secrets.MATHLIB_LEAN_PR_TESTING_APP_ID }}
580- private-key : ${{ secrets.MATHLIB_LEAN_PR_TESTING_PRIVATE_KEY }}
581- owner : leanprover
582- repositories : lean4
579+ # `batteries-pr-testing-*` branches need a token scoped to `leanprover-community/batteries`
580+ # for the labelling API; `lean-pr-testing-*` branches need one scoped to `leanprover/lean4`.
581+ app-id : ${{ startsWith(github.ref_name, 'batteries-pr-testing-') && secrets.MATHLIB_NIGHTLY_TESTING_APP_ID || secrets.MATHLIB_LEAN_PR_TESTING_APP_ID }}
582+ private-key : ${{ startsWith(github.ref_name, 'batteries-pr-testing-') && secrets.MATHLIB_NIGHTLY_TESTING_PRIVATE_KEY || secrets.MATHLIB_LEAN_PR_TESTING_PRIVATE_KEY }}
583+ owner : ${{ startsWith(github.ref_name, 'batteries-pr-testing-') && 'leanprover-community' || 'leanprover' }}
584+ repositories : ${{ startsWith(github.ref_name, 'batteries-pr-testing-') && 'batteries' || 'lean4' }}
583585 # The create-github-app-token README states that this token is masked and will not be logged accidentally.
584586 - name : Post comments for lean-pr-testing-NNNN and batteries-pr-testing-NNNN branches
585587 if : ${{ always() && github.repository == 'leanprover-community/mathlib4-nightly-testing' && (startsWith(github.ref_name, 'lean-pr-testing-') || startsWith(github.ref_name, 'batteries-pr-testing-')) }}
@@ -618,7 +620,7 @@ jobs:
618620 fetch-depth : 1
619621
620622 - name : Configure Lean
621- uses : leanprover/lean-action@c544e89643240c6b398f14a431bcdc6309e36b3e # v1.4 .0
623+ uses : leanprover/lean-action@38fbc41a8c28c4cbaec22d7f7de508ec2e7c0dd9 # v1.5 .0
622624 with :
623625 auto-config : false # Don't run `lake build`, `lake test`, or `lake lint` automatically.
624626 use-github-cache : false
@@ -689,7 +691,7 @@ jobs:
689691 ref : ${{ inputs.pr_branch_ref }}
690692
691693 - name : Configure Lean
692- uses : leanprover/lean-action@c544e89643240c6b398f14a431bcdc6309e36b3e # v1.4 .0
694+ uses : leanprover/lean-action@38fbc41a8c28c4cbaec22d7f7de508ec2e7c0dd9 # v1.5 .0
693695 with :
694696 auto-config : false # Don't run `lake build`, `lake test`, or `lake lint` automatically.
695697 use-github-cache : false
@@ -732,7 +734,7 @@ jobs:
732734 lake exe graph
733735
734736 - name : upload the import graph
735- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
737+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
736738 with :
737739 name : import-graph
738740 path : import_graph.dot
@@ -874,7 +876,7 @@ jobs:
874876 steps.get-label-actor.outputs.username != 'mathlib-update-dependencies' &&
875877 steps.get-label-actor.outputs.username != 'mathlib-splicebot'
876878 name: check team membership
877- uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496b3be4368fc5f62696662 # v3 .0.0
879+ uses: tspascoal/get-user-teams-membership@818140d631d5f29f26b151afbe4179f87d9ceb5e # v4 .0.1
878880 id: actorTeams
879881 with:
880882 organization: leanprover-community # optional. Default value ${{ github.repository_owner }}
0 commit comments