Skip to content

Commit

Permalink
fixed the token-permission issue
Browse files Browse the repository at this point in the history
Signed-off-by: harshitasao <harshitasao@gmail.com>
  • Loading branch information
harshitasao committed Aug 17, 2024
1 parent 1aecb20 commit 6cf78f7
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

conformance:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

format:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

lint:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

test:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/inclusive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

language:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

integration:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/observability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ 'main', 'release-*' ]

permissions:
contents: read

jobs:

observability:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- release-*

permissions:
contents: read

jobs:
semver:
name: Calculate Next Release
Expand All @@ -28,6 +31,8 @@ jobs:
echo "::set-output name=next::$NEXT"
mainmodule:
permissions:
contents: write
name: Release Main Module
runs-on: ubuntu-latest
needs: semver
Expand All @@ -45,6 +50,8 @@ jobs:
prerelease: false

submodules:
permissions:
contents: write
name: Release Sub-Modules
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -78,6 +85,8 @@ jobs:
run: ./hack/tag-release.sh --tag --push

examples:
permissions:
contents: write
name: Update Examples
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 6cf78f7

Please sign in to comment.