0

I want to develop a azure pipeline for secure signing the binary artifact.

Here is the process:

  1. Put the signing tools and binaries in a GitHub repository.

  2. User upload the binaries to GitHub repository folder "unsigned" and run the pipeline, pipeline pull the tools and binaries to a pipeline agent(Winserver) and sign the binaries, the signed binaries will be copied to repository folder "signed".

  3. Directly download the signed binaries from pipeline agent, or upload signed binaries back to GitHub repository where users can download from.

For step 3: How to directly download the signed binaries from pipeline agent to a local PC? What git commands is needed for uploading signed binaries back to GitHub repository? Thanks.

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107
Ming
  • 379
  • 1
  • 6
  • 20

1 Answers1

1

Agree with Shayki, you can try the following git command in a cmd task.

git clone https://github.com/xxx/xxx.git
git config --global user.name "xxx"
git checkout master
git add .
git commit -m "abc"
git push https://{yourPAT}@github.com/xxx/yyy.git

Here is a ticket you can refer to.

Hugh Lin
  • 17,829
  • 2
  • 21
  • 25