Skip to content

Commit 8ce6348

Browse files
authored
add octo-sts (#262)
1 parent b92f010 commit 8ce6348

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

‎.github/chainguard/write.sts.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/octo-sts/app/refs/heads/main/pkg/octosts/octosts.TrustPolicy.json
2+
issuer: https://token.actions.githubusercontent.com
3+
subject: repo:prefix-dev/setup-pixi:ref:refs/heads/main
4+
5+
permissions:
6+
contents: write
7+
pull_requests: write

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
6060
runs-on: ubuntu-latest
6161
permissions:
62-
contents: write
63-
pull-requests: write
62+
contents: read
63+
id-token: write
6464
steps:
6565
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666

@@ -78,11 +78,17 @@ jobs:
7878
env:
7979
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8080

81+
- uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
82+
id: octo-sts
83+
with:
84+
scope: ${{ github.repository }}
85+
identity: write
86+
8187
- name: Create pull request
8288
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
8389
if: failure() && github.ref_name == 'main'
8490
with:
85-
token: ${{ secrets.GITHUB_TOKEN }}
91+
token: ${{ steps.octo-sts.outputs.token }}
8692
commit-message: Reference latest Pixi version in README
8793
title: Reference latest Pixi version in README
8894
labels: ignore for release

0 commit comments

Comments
 (0)