-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1948 from newrelic/upadate-actions-for-release
Update permissions for actions
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
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,6 +8,7 @@ on: | |
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
Check_contributor_handle: | ||
|
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,6 +8,9 @@ on: | |
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
Check failure Code scanning / Scorecard Token-Permissions High
score is 0: jobLevel 'contents' permission set to 'write'
Remediation tip: update your workflow using https://app.stepsecurity.io Click Remediation section below for further remediation help |
||
repository-projects: write | ||
steps: | ||
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0 | ||
with: | ||
|
@@ -41,9 +44,6 @@ jobs: | |
- name: Create github release | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # tag v0.1.15 | ||
if: $(git tag -l ${{ env.VERSION }}) == false | ||
permissions: | ||
contents: write | ||
repository-projects: write | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
env: | ||
|