Skip to content

Commit

Permalink
T6349: updated pr-labels workflow permission (#3485)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumvijaya authored May 18, 2024
1 parent 9a58976 commit 65c8e9e
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/add-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- equuleus
- sagitta

permissions:
pull-requests: write
contents: read

jobs:
add-pr-label:
uses: vyos/.github/.github/workflows/add-pr-labels.yml@feature/T6349-reusable-workflows
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ on:
pull_request_target:
types: [opened, reopened, ready_for_review, locked]


permissions:
pull-requests: write
contents: read

jobs:
assign-author:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/chceck-pr-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- crux
- equuleus

permissions:
pull-requests: write
contents: read

jobs:
check-pr-title:
uses: vyos/.github/.github/workflows/check-pr-message.yml@feature/T6349-reusable-workflows
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-pr-conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
pull-requests: write
contents: read

jobs:
check-pr-conflict-call:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
pull-requests: write
contents: read

jobs:
stale:
uses: vyos/.github/.github/workflows/check-stale.yml@feature/T6349-reusable-workflows
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-unused-imports.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Check for unused imports using Pylint
on:
pull_request_target:
pull_request:
branches:
- current
- sagitta
workflow_dispatch:

permissions:
contents: read

jobs:
Check-Unused-Imports:
check-unused-imports:
uses: vyos/.github/.github/workflows/check-unused-imports.yml@feature/T6349-reusable-workflows
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/label-backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Mergifyio backport

on: [issue_comment]

permissions:
pull-requests: write
contents: read

jobs:
mergifyio_backport:
mergifyio-backport:
uses: vyos/.github/.github/workflows/label-backport.yml@feature/T6349-reusable-workflows
secrets: inherit
4 changes: 4 additions & 0 deletions .github/workflows/linit-j2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- crux
- equuleus

permissions:
pull-requests: write
contents: read

jobs:
j2lint:
uses: vyos/.github/.github/workflows/lint-j2.yml@feature/T6349-reusable-workflows
Expand Down
1 change: 0 additions & 1 deletion src/op_mode/cgnat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import json
import sys
import typing

from tabulate import tabulate

Expand Down

0 comments on commit 65c8e9e

Please sign in to comment.