Skip to content

Commit

Permalink
Merge pull request #1088 from harshitasao/token-permission-fix
Browse files Browse the repository at this point in the history
Fixed the token-permission issue
  • Loading branch information
embano1 authored Sep 8, 2024
2 parents d86ed47 + 2494906 commit 3753f4e
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 3753f4e

Please sign in to comment.