This commit is contained in:
Rustem Khusnutdinov
2024-11-28 18:51:16 +03:00
committed by GitHub
parent 7e44243fa5
commit fb2ec2d7fd
3 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ COPY src/requirements.txt ./
RUN pip install -r requirements.txt
COPY src/entrypoint /usr/local/bin/
COPY src/entrypoint.sh /usr/local/bin/
COPY src/add-to-wiki /usr/local/bin/
COPY src/default.md.j2 /var/

View File

@@ -6,6 +6,10 @@ description: >
Publish diff coverage report as PR comment, and create a coverage badge
to display on the readme.
inputs:
SSH_PRIVATE_KEY:
description: >
SSH key to access privare repositories
required: true
CLOUDFLARE_TOKEN_ID:
description: >
A Cloudflare token id to work with git repository behind CF
@@ -69,3 +73,5 @@ runs:
MINIMUM_ORANGE: ${{ inputs.MINIMUM_ORANGE }}
TOKEN_ID: ${{ inputs.CLOUDFLARE_TOKEN_ID }}
TOKEN_SECRET: ${{ inputs.CLOUDFLARE_TOKEN_SECRET }}
SSH_PRIVATE_KEY: ${{ inputs.SSH_PRIVATE_KEY }}
entrypoint: "entrypoint.sh"

7
src/entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
eval $(ssh-agent -s)
mkdir -p ~/.ssh/ && chmod 700 ~/.ssh
echo "$SSH_PRIVATE_KEY" | ssh-add -
entrypoint