fix: fix org permissions

This commit is contained in:
Catriel Müller
2026-02-10 18:10:46 -03:00
parent 013e65126d
commit e0dae2a1cb
3 changed files with 11 additions and 4 deletions
+9 -2
View File
@@ -13,15 +13,22 @@ on:
jobs:
check:
# kilocode_change - new file
runs-on: blacksmith-2vcpu-ubuntu-2404
outputs:
is-member: ${{ steps.check.outputs.is-member }}
steps:
- name: Create app token
id: apptoken
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.KILO_MAINTAINER_APP_ID }}
private-key: ${{ secrets.KILO_MAINTAINER_APP_SECRET }}
owner: ${{ github.repository_owner }}
- name: Check if author is org member or kilo-maintainer bot
id: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.apptoken.outputs.token }}
USERNAME: ${{ inputs.username }}
run: |
if [[ "$USERNAME" == "kilo-maintainer[bot]" ]]; then
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
check-duplicates:
needs: check-author
if: needs.check-author.outputs.is-member == 'false'
# kilocode_change end
# kilocode_change end
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
check-standards:
needs: check-author
if: needs.check-author.outputs.is-member == 'false'
# kilocode_change end
# kilocode_change end
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
pull-requests: write