@@ -11,22 +11,28 @@ jobs:
1111 runs-on : ubuntu-latest
1212 permissions :
1313 contents : write
14+ # Expose all three tokens to every step in this job:
15+ env :
16+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17+ RELEASE_PLZ_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
18+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
1419
1520 steps :
16- - name : Debug repository context
21+ - name : Debug context & secrets
1722 run : |
18- echo "Repo: $GITHUB_REPOSITORY"
19- echo "Actor (who triggered): $GITHUB_ACTOR"
20- echo "Repository owner: ${{ github.repository_owner }}"
21- echo "Ref: $GITHUB_REF"
22- echo "Has RELEASE_PLZ_TOKEN?"; test -n "$RELEASE_PLZ_TOKEN" && echo "✔︎" || echo "✘"
23- echo "Has CARGO_REGISTRY_TOKEN?"; test -n "$CARGO_REGISTRY_TOKEN" && echo "✔︎" || echo "✘"
23+ echo "Repo: $GITHUB_REPOSITORY"
24+ echo "Actor: $GITHUB_ACTOR"
25+ echo "Repository owner: ${{ github.repository_owner }}"
26+ echo "Ref: $GITHUB_REF"
27+ echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
28+ echo "RELEASE_PLZ_TOKEN length: ${#RELEASE_PLZ_TOKEN}"
29+ echo "CARGO_REGISTRY_TOKEN length:${#CARGO_REGISTRY_TOKEN}"
2430
2531 - name : Checkout repository
2632 uses : actions/checkout@v4
2733 with :
2834 fetch-depth : 0
29- token : ${{ secrets.RELEASE_PLZ_TOKEN }}
35+ token : ${{ secrets.GITHUB_TOKEN }}
3036
3137 - name : Install Rust toolchain
3238 uses : dtolnay/rust-toolchain@stable
3743 with :
3844 command : release --manifest-path rust-mcp-server-syncable-cli/Cargo.toml
3945 env :
40- GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
41- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
46+ # you can re-declare them here or just inherit the job-level ones:
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
4249
4350
4451 release-plz-pr :
@@ -51,22 +58,27 @@ jobs:
5158 concurrency :
5259 group : release-plz-${{ github.ref }}
5360 cancel-in-progress : false
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+ RELEASE_PLZ_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
64+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
5465
5566 steps :
56- - name : Debug repository context
67+ - name : Debug context & secrets
5768 run : |
58- echo "Repo: $GITHUB_REPOSITORY"
59- echo "Actor (who triggered): $GITHUB_ACTOR"
60- echo "Repository owner: ${{ github.repository_owner }}"
61- echo "Ref: $GITHUB_REF"
62- echo "Has RELEASE_PLZ_TOKEN?"; test -n "$RELEASE_PLZ_TOKEN" && echo "✔︎" || echo "✘"
63- echo "Has CARGO_REGISTRY_TOKEN?"; test -n "$CARGO_REGISTRY_TOKEN" && echo "✔︎" || echo "✘"
69+ echo "Repo: $GITHUB_REPOSITORY"
70+ echo "Actor: $GITHUB_ACTOR"
71+ echo "Repository owner: ${{ github.repository_owner }}"
72+ echo "Ref: $GITHUB_REF"
73+ echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
74+ echo "RELEASE_PLZ_TOKEN length: ${#RELEASE_PLZ_TOKEN}"
75+ echo "CARGO_REGISTRY_TOKEN length:${#CARGO_REGISTRY_TOKEN}"
6476
6577 - name : Checkout repository
6678 uses : actions/checkout@v4
6779 with :
6880 fetch-depth : 0
69- token : ${{ secrets.RELEASE_PLZ_TOKEN }}
81+ token : ${{ secrets.GITHUB_TOKEN }}
7082
7183 - name : Install Rust toolchain
7284 uses : dtolnay/rust-toolchain@stable
7688 with :
7789 command : pr --manifest-path rust-mcp-server-syncable-cli/Cargo.toml
7890 env :
79- GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
80- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
91+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
0 commit comments