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

Commit

Permalink
Pass absolute path to public key to the OpenSSL (closes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Apr 7, 2020
1 parent 7c7ad50 commit 613cc23
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.1] - 2020-04-07

### Fixed

- Pass absolute path to the public key to the OpenSSL (#2)

## [0.1.0] - 2020-03-30

### Added
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rust-cargo-install",
"version": "0.1.0",
"version": "0.1.1",
"description": "Install a Rust binary crate as fast as possible",
"main": "lib/main.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import * as tc from "@actions/tool-cache";
import * as http from "@actions/http-client";

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

function getRunner(): string {
const platform = os.platform() as string;
Expand Down

0 comments on commit 613cc23

Please sign in to comment.