mirror of
https://github.com/amazon-science/chronos-forecasting
synced 2026-05-23 09:39:35 +00:00
Scope down GitHub token permissions (#328)
*Issue #, if available:* *Description of changes:* Scope down GitHub token permissions for GHA security best practices. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This commit is contained in:
parent
330c5438a6
commit
a52d460f04
2 changed files with 8 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -8,6 +8,10 @@ on:
|
|||
schedule:
|
||||
- cron: "0 8 * * *" # Run at 8 AM UTC
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
type-check:
|
||||
strategy:
|
||||
|
|
|
|||
4
.github/workflows/eval-model.yml
vendored
4
.github/workflows/eval-model.yml
vendored
|
|
@ -11,6 +11,10 @@ on:
|
|||
- synchronize # When new commits are pushed to the PR
|
||||
- labeled # When a label is added to the PR
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
evaluate-and-print:
|
||||
if: contains(github.event.pull_request.labels.*.name, 'run-eval') # Only run if 'run-eval' label is added
|
||||
|
|
|
|||
Loading…
Reference in a new issue