Skip to content

Commit

Permalink
ci(github): Define explicit permission
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jul 2, 2023
1 parent c067121 commit d3a781f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/branch_clean.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
name: Git

permissions: {}
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
- pull_request
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
name: Build

permissions: {}
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
push:
Expand All @@ -12,7 +22,7 @@ on:
- main

env:
SCRIPTS_NO_INTERACTIVE: 'true'
SCRIPTS_NO_INTERACTIVE: "true"

defaults:
run:
Expand All @@ -28,7 +38,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: '^1.20'
go-version: "^1.20"

- name: Build
run: |
Expand Down Expand Up @@ -61,7 +71,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: '^1.20'
go-version: "^1.20"
- name: Build
env:
GO_ARCHS: linux/amd64 linux/arm linux/arm64 darwin/amd64 darwin/arm64
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/herodote.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
name: Herodote

permissions: {}
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
push:
Expand All @@ -26,4 +36,4 @@ jobs:
HERODOTE_SECRET: ${{ secrets.HERODOTE_SECRET }}
GIT_HOST: github.com
GIT_REPOSITORY: ${{ github.repository }}
SCRIPTS_NO_INTERACTIVE: '1'
SCRIPTS_NO_INTERACTIVE: "1"
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

0 comments on commit d3a781f

Please sign in to comment.