Skip to content

Commit

Permalink
chore(workflows): cleanup workflow permissions and names (#1369)
Browse files Browse the repository at this point in the history
* chore(workflows): cleanup workflow permissions and names

* update CODEOWNERS
  • Loading branch information
fuxingloh authored Apr 23, 2022
1 parent 577787e commit 60f0d27
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
/docs/legacy/ @fuxingloh @eli-lim
/apps/legacy-api/ @fuxingloh @joeldavidw @eli-lim

/apps/status-api/ @fuxingloh @joeldavidw @nichellekoh

/docs/ocean/ @fuxingloh @canonbrother @ivan-zynesis
/apps/ocean-api/ @fuxingloh @canonbrother @kodemon
/packages/ocean-api-client/ @fuxingloh @canonbrother @kodemon
Expand All @@ -44,8 +46,8 @@
/packages/jellyfish-crypto/ @fuxingloh @ivan-zynesis @surangap
/packages/jellyfish-transaction-signature/ @fuxingloh @ivan-zynesis @surangap

/packages/jellyfish-wallet/ @fuxingloh @ivan-zynesis @monstrobishi
/packages/jellyfish-wallet-classic/ @fuxingloh @ivan-zynesis @monstrobishi
/packages/jellyfish-wallet/ @fuxingloh @ivan-zynesis
/packages/jellyfish-wallet-classic/ @fuxingloh @ivan-zynesis
/packages/jellyfish-wallet-encrypted/ @fuxingloh @ivan-zynesis
/packages/jellyfish-wallet-mnemonic/ @fuxingloh @ivan-zynesis

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/oss-governance-bot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Governance
name: OSS Governance

on:
pull_request_target:
Expand All @@ -8,12 +8,15 @@ on:
issue_comment:
types: [ created ]

permissions:
contents: read
issues: write
pull-requests: write
statuses: write
checks: write

jobs:
main:
name: OSS
Bot:
runs-on: ubuntu-latest
steps:
- uses: BirthdayResearch/oss-governance-bot@23a023a59e633947923a299f0497371576e12e78
with:
github-token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}

13 changes: 9 additions & 4 deletions .github/workflows/oss-governance-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
name: Governance
name: OSS Governance

on:
pull_request_target:
types: [ opened, edited, synchronize ]

permissions:
contents: read
issues: write
pull-requests: write
statuses: write
checks: write

jobs:
labeler:
name: Labeler
Labeler:
runs-on: ubuntu-latest
steps:
- uses: fuxingloh/multi-labeler@67208f475e36fc4f95e3d5a2d4e450433f288be8
with:
github-token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
config-path: .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Labels
name: OSS Governance

on:
push:
branches: [ main ]
paths: [ .github/labels.yml ]

permissions:
contents: read
issues: write

jobs:
main:
name: Syncer
Labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ main ]

permissions:
contents: write
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
Expand Down

0 comments on commit 60f0d27

Please sign in to comment.