-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lukas/gh/maint-26' into maint-26
* lukas/gh/maint-26: gh: Limit scope of GITHUB_TOKEN and only use permissions where needed github: add OSV automated vulnerability checking
- Loading branch information
Showing
7 changed files
with
27 additions
and
7 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
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 |
---|---|---|
|
@@ -10,12 +10,6 @@ on: | |
- cron: 0 1 * * * | ||
|
||
permissions: | ||
# Required to upload SARIF file to CodeQL. | ||
# See: https://github.com/github/codeql-action/issues/2117 | ||
actions: read | ||
# Require writing security events to upload SARIF file to security tab | ||
security-events: write | ||
# Only need to read contents | ||
contents: read | ||
|
||
jobs: | ||
|
@@ -72,4 +66,12 @@ jobs: | |
# run-scheduled-scan triggers this job | ||
# PRs and pushes trigger this job | ||
if: github.event_name != 'schedule' | ||
permissions: | ||
# Required to upload SARIF file to CodeQL. | ||
# See: https://github.com/github/codeql-action/issues/2117 | ||
actions: read | ||
# Require writing security events to upload SARIF file to security tab | ||
security-events: write | ||
# Only needs to read contents | ||
contents: read | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected]" |
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 |
---|---|---|
|
@@ -7,6 +7,9 @@ on: | |
## In UTC | ||
- cron: '0 */4 * * *' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
sync-prs: | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
|
||
## Needed to create releases | ||
permissions: | ||
contents: write | ||
contents: read | ||
|
||
## Build base images to be used by other github workflows | ||
jobs: | ||
|
@@ -18,6 +18,9 @@ jobs: | |
if: github.repository == 'erlang/otp' | ||
concurrency: sync-github-releases | ||
runs-on: ubuntu-latest | ||
permissions: | ||
## Needed to create releases | ||
contents: write | ||
steps: | ||
- uses: actions/[email protected] | ||
## We need to login to the package registry in order to pull | ||
|
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