Skip to content

Commit 7e5d7b0

Browse files
committed
rename pkg owner
1 parent 17451bb commit 7e5d7b0

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

actions/installer/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
- name: Checkout
2929
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
3030
with:
31-
repository: "slsa-framework/slsa-verifier"
31+
repository: "kpk47/slsa-verifier"
3232
ref: "${{ env.action_ref }}"
3333
- name: Setup Node.js 16
3434
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # tag=v3.5.0

actions/installer/dist/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ function getVerifierVersion(actionRef) {
8383
if (shaRe.test(actionRef)) {
8484
const octokit = github.getOctokit(process.env.TOKEN || "");
8585
const { data: releases } = yield octokit.request("GET /repos/{owner}/{repository}/releases", {
86-
owner: "slsa-framework",
86+
owner: "kpk47",
8787
repository: "slsa-verifier",
8888
});
8989
for (const release of releases) {
9090
const { data: commit } = yield octokit.request("GET /reps/{owner}/{repository}/git/ref/tags/{tagName}", {
91-
owner: "slsa-framework",
91+
owner: "kpk47",
9292
repository: "slsa-verifier",
9393
tagName: release.tag_name,
9494
});
@@ -98,7 +98,7 @@ function getVerifierVersion(actionRef) {
9898
}
9999
}
100100
}
101-
throw new Error(`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.`);
101+
throw new Error(`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases.`);
102102
});
103103
}
104104
exports.getVerifierVersion = getVerifierVersion;
@@ -132,7 +132,7 @@ function run() {
132132
}
133133
catch (error) {
134134
const errMsg = error instanceof Error ? error.message : String(error);
135-
core.setFailed(`Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${errMsg}`);
135+
core.setFailed(`Invalid version provided. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases. ${errMsg}`);
136136
cleanup();
137137
return;
138138
}
@@ -142,7 +142,7 @@ function run() {
142142
let bootstrapVerifierPath;
143143
try {
144144
// Download bootstrap version and validate SHA256 checksum
145-
bootstrapVerifierPath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`, `${bootstrapDir}/${BINARY_NAME}`);
145+
bootstrapVerifierPath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`, `${bootstrapDir}/${BINARY_NAME}`);
146146
}
147147
catch (error) {
148148
const errMsg = error instanceof Error ? error.message : String(error);
@@ -159,7 +159,7 @@ function run() {
159159
let downloadedBinaryPath;
160160
try {
161161
// Download requested version binary and provenance
162-
downloadedBinaryPath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`, `${installDir}/${BINARY_NAME}`);
162+
downloadedBinaryPath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`, `${installDir}/${BINARY_NAME}`);
163163
}
164164
catch (error) {
165165
const errMsg = error instanceof Error ? error.message : String(error);
@@ -169,7 +169,7 @@ function run() {
169169
}
170170
let downloadedProvenancePath;
171171
try {
172-
downloadedProvenancePath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`, `${installDir}/${PROVENANCE_NAME}`);
172+
downloadedProvenancePath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`, `${installDir}/${PROVENANCE_NAME}`);
173173
}
174174
catch (error) {
175175
const errMsg = error instanceof Error ? error.message : String(error);
@@ -182,7 +182,7 @@ function run() {
182182
const { exitCode, stdout, stderr } = yield exec.getExecOutput(`${bootstrapVerifierPath}`, [
183183
`-artifact-path=${downloadedBinaryPath}`,
184184
`-provenance=${downloadedProvenancePath}`,
185-
`-source=github.com/slsa-framework/slsa-verifier`,
185+
`-source=github.com/kpk47/slsa-verifier`,
186186
`-tag=${version}`,
187187
]);
188188
if (exitCode !== 0) {

actions/installer/dist/index.js.map

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

actions/installer/src/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ export async function getVerifierVersion(actionRef: string): Promise<string> {
4747
const { data: releases } = await octokit.request(
4848
"GET /repos/{owner}/{repository}/releases",
4949
{
50-
owner: "slsa-framework",
50+
owner: "kpk47",
5151
repository: "slsa-verifier",
5252
}
5353
);
5454
for (const release of releases) {
5555
const { data: commit } = await octokit.request(
5656
"GET /reps/{owner}/{repository}/git/ref/tags/{tagName}",
5757
{
58-
owner: "slsa-framework",
58+
owner: "kpk47",
5959
repository: "slsa-verifier",
6060
tagName: release.tag_name,
6161
}
@@ -67,7 +67,7 @@ export async function getVerifierVersion(actionRef: string): Promise<string> {
6767
}
6868
}
6969
throw new Error(
70-
`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.`
70+
`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases.`
7171
);
7272
}
7373

@@ -103,7 +103,7 @@ async function run(): Promise<void> {
103103
} catch (error: unknown) {
104104
const errMsg = error instanceof Error ? error.message : String(error);
105105
core.setFailed(
106-
`Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${errMsg}`
106+
`Invalid version provided. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases. ${errMsg}`
107107
);
108108
cleanup();
109109
return;
@@ -117,7 +117,7 @@ async function run(): Promise<void> {
117117
try {
118118
// Download bootstrap version and validate SHA256 checksum
119119
bootstrapVerifierPath = await tc.downloadTool(
120-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`,
120+
`https://github.com/kpk47/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`,
121121
`${bootstrapDir}/${BINARY_NAME}`
122122
);
123123
} catch (error: unknown) {
@@ -143,7 +143,7 @@ async function run(): Promise<void> {
143143
try {
144144
// Download requested version binary and provenance
145145
downloadedBinaryPath = await tc.downloadTool(
146-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`,
146+
`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`,
147147
`${installDir}/${BINARY_NAME}`
148148
);
149149
} catch (error: unknown) {
@@ -155,7 +155,7 @@ async function run(): Promise<void> {
155155
let downloadedProvenancePath;
156156
try {
157157
downloadedProvenancePath = await tc.downloadTool(
158-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`,
158+
`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`,
159159
`${installDir}/${PROVENANCE_NAME}`
160160
);
161161
} catch (error: unknown) {
@@ -172,7 +172,7 @@ async function run(): Promise<void> {
172172
[
173173
`-artifact-path=${downloadedBinaryPath}`,
174174
`-provenance=${downloadedProvenancePath}`,
175-
`-source=github.com/slsa-framework/slsa-verifier`,
175+
`-source=github.com/kpk47/slsa-verifier`,
176176
`-tag=${version}`,
177177
]
178178
);

0 commit comments

Comments
 (0)