Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 613cc23

Browse files
committed
Pass absolute path to public key to the OpenSSL (closes #2)
1 parent 7c7ad50 commit 613cc23

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.1] - 2020-04-07
8+
9+
### Fixed
10+
11+
- Pass absolute path to the public key to the OpenSSL (#2)
12+
713
## [0.1.0] - 2020-03-30
814

915
### Added

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rust-cargo-install",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Install a Rust binary crate as fast as possible",
55
"main": "lib/main.js",
66
"scripts": {

src/download.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import * as tc from "@actions/tool-cache";
88
import * as http from "@actions/http-client";
99

1010
const CLOUDFRONT_ROOT = "https://d1ad61wkrfbmp3.cloudfront.net";
11-
// Path, assuming we are executing from the repo root
12-
const CACHE_PUBLIC_KEY = "public.pem";
11+
// Path to the public key of the sign certificate.
12+
// It is resolved either from compiled `dist/index.js` during usual Action run,
13+
// or from this one file and always points to the file at the repo root.
14+
const CACHE_PUBLIC_KEY = path.resolve(__dirname, "..", "public.pem");
1315

1416
function getRunner(): string {
1517
const platform = os.platform() as string;

0 commit comments

Comments
 (0)