Skip to content

Commit

Permalink
adding permissions here
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabharadwaj198 committed Nov 21, 2024
1 parent 496c315 commit de641ac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/backwards_compatibility_marqo_execution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ on:

jobs:
Start-Runner:
permissions: write-all
permissions:
contents: read
actions: write
id-token: write
ec2-actions: write
checks: write
deployments: write
packages: write
statuses: write
name: Start self-hosted EC2 runner
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -126,6 +134,15 @@ jobs:
Stop-Runner:
name: Stop self-hosted EC2 runner
permissions:
contents: read
actions: write
id-token: write
ec2-actions: write
checks: write
deployments: write
packages: write
statuses: write
needs:
- Start-Runner # required to get output from the start-runner job
- backwards_compatibility # required to wait when the main job is done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ jobs:
from_version: ${{ fromJson(needs.orchestrate.outputs.list) }}
uses: ./.github/workflows/backwards_compatibility_marqo_execution.yml
secrets: inherit
permissions:
contents: read
actions: write
id-token: write
ec2-actions: write
checks: write
deployments: write
packages: write
statuses: write
with:
from_version: ${{ matrix.from_version }}
to_version: ${{ needs.orchestrate.outputs.to_version }}
Expand Down

0 comments on commit de641ac

Please sign in to comment.