Skip to content

Commit

Permalink
Add creds
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 22, 2023
1 parent 8f7d68f commit 2908a31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ jobs:
-credential_id=${ES_CREDENTIAL_ID} \
-totp_secret=${ES_TOTP_SECRET} \
-input_dir_path="/code/binaries"
env:
ES_USERNAME: "${{ secrets.ES_USERNAME }}"
ES_PASSWORD: "${{ secrets.ES_PASSWORD }}"
ES_CREDENTIAL_ID: "${{ secrets.ES_CREDENTIAL_ID }}"
ES_TOTP_SECRET: "${{ secrets.ES_TOTP_SECRET }}"
- name: Postsign
run: ls -hal binaries
5 changes: 4 additions & 1 deletion scripts/download-draft-bins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Readable } from "stream";
import { finished } from "stream/promises";

const { GITHUB_TOKEN } = process.env;
console.log("download-draft-bins.ts");

if(!GITHUB_TOKEN) {
throw new Error("GITHUB_TOKEN not set")
}

async function downloadFile(url: string, filepath = "./download") {
const response = await fetch(url, {
Expand Down

0 comments on commit 2908a31

Please sign in to comment.