[go: nahoru, domu]

Skip to content

Commit

Permalink
Trading Partner Workflow - add all permissions (Test)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 446058722
  • Loading branch information
tensorflower-gardener committed May 2, 2022
1 parent ea50a40 commit 54fa107
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/trusted-partners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ name: assign-partner-tags
on:
pull_request:

# TODO: Test permissions issue. Remove after test and give targetted permission
permissions: write-all

jobs:
assign-partner-tags:
runs-on: ubuntu-latest
# Add permissions needed to attach tags into the PR
permissions:
issues: write
contents: write
pull-requests: write
if: |
github.event.pull_request.draft == false &&
github.event.sender.type == 'User'
Expand All @@ -34,7 +32,7 @@ jobs:
- name: Trusted-Partners-PR
uses: actions/github-script@v5
with:
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{secrets.TF_PR_TRUSTED_PARTNER}}
script: |
const script = require('./.github/workflows/trusted_partners.js');
const username = context.payload.pull_request.user.login;
Expand Down

0 comments on commit 54fa107

Please sign in to comment.