Merge remote-tracking branch 'turrisxyz/Pinned-Dependencies-GitHub'

* turrisxyz/Pinned-Dependencies-GitHub:
  chore: Set permissions for GitHub actions
This commit is contained in:
Tim Wojtulewicz 2022-06-14 11:30:28 -07:00
commit 0edc331ca1
5 changed files with 28 additions and 1 deletions

View file

@ -4,6 +4,9 @@ on:
schedule: schedule:
- cron: '0 0 * * 1,3,5' - cron: '0 0 * * 1,3,5'
permissions:
contents: read
jobs: jobs:
scan: scan:
if: github.repository == 'zeek/zeek' if: github.repository == 'zeek/zeek'

View file

@ -18,6 +18,9 @@ env:
IMAGE_FILE: /tmp/zeek-image.tar IMAGE_FILE: /tmp/zeek-image.tar
IMAGE_PATH: /tmp IMAGE_PATH: /tmp
permissions:
contents: read
jobs: jobs:
docker-build: docker-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -9,8 +9,13 @@ defaults:
run: run:
shell: bash shell: bash
permissions:
contents: read
jobs: jobs:
generate: generate:
permissions:
contents: write # for Git to git push
if: github.repository == 'zeek/zeek' if: github.repository == 'zeek/zeek'
runs-on: ubuntu-latest runs-on: ubuntu-latest

16
CHANGES
View file

@ -1,3 +1,19 @@
5.1.0-dev.27 | 2022-06-14 11:30:28 -0700
* chore: Set permissions for GitHub actions (naveen)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they wont be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
5.1.0-dev.25 | 2022-06-14 10:07:32 -0700 5.1.0-dev.25 | 2022-06-14 10:07:32 -0700
* chore: Included githubactions in the dependabot config (naveen) * chore: Included githubactions in the dependabot config (naveen)

View file

@ -1 +1 @@
5.1.0-dev.25 5.1.0-dev.27