From 3badf0596ae0f6684160dcb0494ac98fa056615f Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 13 Sep 2024 15:40:28 +0000 Subject: T6674: Actions use pull_request_target to trigger build package --- .github/workflows/trigger-rebuild-repo-package.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to '.github/workflows/trigger-rebuild-repo-package.yml') diff --git a/.github/workflows/trigger-rebuild-repo-package.yml b/.github/workflows/trigger-rebuild-repo-package.yml index 166d7e711..78acec685 100644 --- a/.github/workflows/trigger-rebuild-repo-package.yml +++ b/.github/workflows/trigger-rebuild-repo-package.yml @@ -1,7 +1,7 @@ name: Trigger to build a deb package from repo on: - pull_request: + pull_request_target: types: - closed branches: @@ -23,7 +23,10 @@ jobs: needs: get_repo_name uses: vyos/.github/.github/workflows/trigger-rebuild-repo-package.yml@current with: - branch: ${{ github.ref_name }} - package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }} - REF: main # optinal because the default value is main - secrets: inherit + branch: ${{ github.ref_name }} + package_name: ${{ needs.get_repo_name.outputs.PACKAGE_NAME }} + secrets: + REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }} + REMOTE_REPO: ${{ secrets.REMOTE_REUSE_REPO }} + GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} + PAT: ${{ secrets.PAT }} -- cgit v1.2.3