forked from aws/karpenter-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Audited and documented permissions for gha (aws#4910)
- Loading branch information
Showing
13 changed files
with
22 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ on: | |
- cron: '0 13 * * MON' | ||
|
||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
contents: write | ||
id-token: write # aws-actions/[email protected] | ||
pull-requests: write # name: Create Pull Request | ||
contents: write # name: Create Pull Request | ||
|
||
jobs: | ||
codegen: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: [main] | ||
|
||
permissions: | ||
id-token: write | ||
id-token: write # aws-actions/[email protected] | ||
|
||
jobs: | ||
docgen-ci: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,9 +46,8 @@ on: | |
SLACK_WEBHOOK_URL: | ||
required: true | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
statuses: write | ||
id-token: write # aws-actions/[email protected] | ||
statuses: write # ./.github/actions/commit-status/start | ||
jobs: | ||
run-suite: | ||
name: suite-upgrade | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,9 +74,8 @@ on: | |
SLACK_WEBHOOK_URL: | ||
required: true | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
statuses: write | ||
id-token: write # aws-actions/[email protected] | ||
statuses: write # ./.github/actions/commit-status/start | ||
jobs: | ||
run-suite: | ||
name: suite-${{ inputs.suite }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
schedule: | ||
- cron: '0 13 * * MON' | ||
permissions: | ||
id-token: write | ||
id-token: write # aws-actions/[email protected] | ||
jobs: | ||
publish-tools: | ||
if: github.repository == 'aws/karpenter' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ on: | |
push: | ||
tags: [ 'v*.*.*' ] | ||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
contents: write | ||
id-token: write # aws-actions/[email protected] | ||
contents: write # marvinpinto/action-automatic-releases@latest | ||
pull-requests: write # name: Create PR | ||
jobs: | ||
release: | ||
if: github.repository == 'aws/karpenter' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
push: | ||
branches: [ main ] | ||
permissions: | ||
id-token: write | ||
id-token: write # aws-actions/[email protected] | ||
jobs: | ||
release: | ||
if: github.repository == 'aws/karpenter' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,8 @@ jobs: | |
StaleBot: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
discussions: write | ||
pull-requests: write | ||
issues: write # actions/[email protected] | ||
pull-requests: write # actions/[email protected] | ||
if: github.repository == 'aws/karpenter' | ||
name: Stale issue bot | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ on: | |
- cron: '0 */12 * * *' | ||
workflow_dispatch: | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
id-token: write # aws-actions/[email protected] | ||
jobs: | ||
sweeper: | ||
if: vars.ACCOUNT_ID != '' || github.event_name == 'workflow_dispatch' | ||
|