Skip to content

Commit

Permalink
chore: use secret for app id
Browse files Browse the repository at this point in the history
Now use secrets to acquire APP_ID, all called workflow secrets change
to inherit.
  • Loading branch information
asterwyx authored and myml committed Jul 10, 2023
1 parent 3fa908e commit 559e911
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 31 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ name: auto tag
on:
workflow_call:
secrets:
APP_ID:
required: true
APP_PRIVATE_KEY:
required: true
TRANSIFEX_API_TOKEN:
required: true

env:
APP_ID: 174141
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ concurrency:
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
secrets: inherit

backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets:
GITEE_SYNC_TOKEN: ${{ secrets.GITEE_SYNC_TOKEN }}
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/call-clacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ concurrency:
jobs:
clacheck:
uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/call-transfer-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ on:
jobs:
call:
uses: linuxdeepin/.github/.github/workflows/transfer-issues-func.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
4 changes: 3 additions & 1 deletion .github/workflows/cla-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "CLA Assistant"
on:
workflow_call:
secrets:
APP_ID:
required: true
APP_PRIVATE_KEY:
required: true

Expand All @@ -15,7 +17,7 @@ jobs:
uses: linuxdeepin/contributor-assistant-github-action@master

env:
APP_ID: 174141
APP_ID: ${{ secrets.APP_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/doc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: doxygen-check
on:
workflow_call:
secrets:
APP_ID:
required: true
APP_PRIVATE_KEY:
required: true

Expand All @@ -16,7 +18,7 @@ jobs:

runs-on: ubuntu-latest
env:
APP_ID: 174141
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/transfer-issues-func.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: Transfer Issues
on:
workflow_call:
secrets:
APP_ID:
required: true
APP_PRIVATE_KEY:
required: true

env:
APP_ID: 174141
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
COMMENT_MESSAGE: "Transfer this issue to the developer-center repository"
TARGET_REPO: "developer-center"
Expand Down
6 changes: 2 additions & 4 deletions workflow-templates/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ concurrency:
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
secrets: inherit

backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets:
GITEE_SYNC_TOKEN: ${{ secrets.GITEE_SYNC_TOKEN }}
secrets: inherit
6 changes: 1 addition & 5 deletions workflow-templates/call-build-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ on:
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master
secrets:
BUILD_GPG_PRIVATE_KEY: ${{ secrets.BUILD_GPG_PRIVATE_KEY }}
BUILD_SSH_PRIVATE_KEY: ${{ secrets.BUILD_SSH_PRIVATE_KEY }}
WEBDAV_PASSWD: ${{ secrets.WEBDAV_PASSWD }}
WEBDAV_USER: ${{ secrets.WEBDAV_USER }}
secrets: inherit
3 changes: 1 addition & 2 deletions workflow-templates/call-build-linglong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ concurrency:
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-linglong.yml@master
secrets:
BridgeToken: ${{ secrets.BridgeToken }}
secrets: inherit
3 changes: 1 addition & 2 deletions workflow-templates/call-clacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ concurrency:
jobs:
clacheck:
uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
3 changes: 1 addition & 2 deletions workflow-templates/call-deploy-dev-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ jobs:
uses: linuxdeepin/.github/.github/workflows/deploy-dev-doc.yml@master
with:
ref: ${{ inputs.tag }}
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
3 changes: 1 addition & 2 deletions workflow-templates/call-doc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ concurrency:
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/doc-check.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
3 changes: 1 addition & 2 deletions workflow-templates/call-transfer-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ on:
jobs:
call:
uses: linuxdeepin/.github/.github/workflows/transfer-issues-func.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit

0 comments on commit 559e911

Please sign in to comment.