Skip to content

Commit

Permalink
update permissions to allow for checkout of private repo in reusable …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
TieDyedSheep committed Jul 9, 2024
1 parent 0dfba5f commit c7d2d91
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ on:
options:
- dev
- main

permissions:
issues: write
pull-requests: write

jobs:
echo-inputs:
name: Repo Workflow Debugging
Expand All @@ -43,6 +38,10 @@ jobs:
echo "*** End - Check inputs in repo workflow ***"
ci-dev:
if: ${{ github.event.inputs.workflowBranch == 'dev' }}
permissions:
pull-requests: write
contents: read
issues: write
uses: shardeum/github-automation/.github/workflows/reusable-node-ci.yml@dev
with:
node-version: ${{ vars.NODE_VERSION }}
Expand All @@ -54,6 +53,10 @@ jobs:

ci-main:
if: ${{ github.event.inputs.workflowBranch == 'main' || !github.event.inputs.workflowBranch }}
permissions:
pull-requests: write
issues: write
contents: read
uses: shardeum/github-automation/.github/workflows/reusable-node-ci.yml@main
with:
node-version: ${{ vars.NODE_VERSION }}
Expand Down

0 comments on commit c7d2d91

Please sign in to comment.