Skip to content

Commit

Permalink
first certificate fix (#23)
Browse files Browse the repository at this point in the history
* first certificate fix

* fixed first cert issue
  • Loading branch information
raianand authored Apr 3, 2024
1 parent b8307aa commit 34ff158
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Setup Bolt
uses: koalalab-inc/bolt@28c30ca51e4b69b37262da23158de4a5d14f653d # koalalab-inc/bolt@v1.3.0 | main
uses: koalalab-inc/bolt@541cd6f2a1407e5a632621eca92e73475e296c3a # koalalab-inc/bolt@v1.1.0 | v1
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4 | 1567,v4.1.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Setup Bolt
uses: koalalab-inc/bolt@28c30ca51e4b69b37262da23158de4a5d14f653d # koalalab-inc/bolt@v1.3.0 | main
uses: koalalab-inc/bolt@541cd6f2a1407e5a632621eca92e73475e296c3a # koalalab-inc/bolt@v1.1.0 | v1
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4 | 1567,v4.1.1
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

steps:
- name: Setup Bolt
uses: koalalab-inc/bolt@28c30ca51e4b69b37262da23158de4a5d14f653d # koalalab-inc/bolt@v1.3.0 | main
uses: koalalab-inc/bolt@541cd6f2a1407e5a632621eca92e73475e296c3a # koalalab-inc/bolt@v1.1.0 | v1
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4 | 1567,v4.1.1
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Setup Bolt
uses: koalalab-inc/bolt@28c30ca51e4b69b37262da23158de4a5d14f653d # koalalab-inc/bolt@v1.3.0 | main
uses: koalalab-inc/bolt@541cd6f2a1407e5a632621eca92e73475e296c3a # koalalab-inc/bolt@v1.1.0 | v1
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4 | 1567,v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
arch: x86_64
steps:
- name: Setup Bolt
uses: koalalab-inc/bolt@28c30ca51e4b69b37262da23158de4a5d14f653d # koalalab-inc/bolt@v1.3.0 | main
uses: koalalab-inc/bolt@541cd6f2a1407e5a632621eca92e73475e296c3a # koalalab-inc/bolt@v1.1.0 | v1
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4 | 1567,v4.1.1
- name: Get release version
Expand Down
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ async function run() {
await exec(
`sudo cp /home/${boltUser}/.mitmproxy/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/bolt.crt`
)
const boltCertDir = '/home/runner/.bolt/certs'
const boltCertPath = `${boltCertDir}/bolt.crt`
await exec(`mkdir -p ${boltCertDir}`)
await exec(
`sudo cp /home/${boltUser}/.mitmproxy/mitmproxy-ca-cert.pem ${boltCertPath}`
)
await exec(
`sudo chown runner:runner ${boltCertPath}`
)
core.exportVariable('NODE_EXTRA_CA_CERTS', boltCertPath)
await exec('sudo update-ca-certificates')
break
}
Expand Down

0 comments on commit 34ff158

Please sign in to comment.