-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: reduce the permissions for github actions jobs #375
Changes from all commits
d7da059
0e1e878
5b7f214
bbbd64c
e49fb07
d631cfa
b563ce2
85d7bb5
d584e53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,13 @@ jobs: | |
name: Run tests | ||
runs-on: ubuntu-latest | ||
environment: staging | ||
permissions: | ||
checks: write | ||
steps: | ||
- name: "build: checkout the latest changes" | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: "build: setup the node runtime" | ||
|
@@ -226,7 +229,7 @@ jobs: | |
- name: "chore(health): check up on recent changes to the health score" | ||
uses: slackapi/slack-health-score@v0.1.1 | ||
with: | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
codecov_token: ${{ secrets.CODECOV_API_TOKEN }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was changed to be an API token and has been added as a secret- https://github.com/slackapi/slack-health-score/?tab=readme-ov-file#api-tokens There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh and this was changed because the standard upload token was being used: https://github.com/slackapi/slack-github-action/actions/runs/12173268802/job/33953505599#step:31:257 I don't think the testing workflow in this PR will show an update due to |
||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
extension: js | ||
include: src |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the default permissions are alright on a "development" workflow that's only run for experimenting with changes 🔍
Open to updating this however though!