Skip to content

Commit a1c6da8

Browse files
committed
rename repos
1 parent 012bb5e commit a1c6da8

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ 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/{repository_owner}/{repository}/releases", {
86-
repository_owner: 'slsa-framework',
87-
repository: 'slsa-verifier',
86+
repository_owner: "kpk47",
87+
repository: "slsa-verifier",
8888
});
8989
for (const release of releases) {
9090
const { data: commit } = yield octokit.request("GET /reps/{repository_owner}/{repository}/git/ref/tags/{tagName}", {
91-
repository_owner: 'slsa-framework',
92-
repository: 'slsa-verifier',
91+
repository_owner: "kpk47",
92+
repository: "slsa-verifier",
9393
});
9494
const commitSha = commit.object.sha;
9595
if (commitSha === actionRef) {
9696
return release.tag_name;
9797
}
9898
}
9999
}
100-
throw new Error(`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.`);
100+
throw new Error(`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases.`);
101101
});
102102
}
103103
exports.getVerifierVersion = getVerifierVersion;
@@ -131,7 +131,7 @@ function run() {
131131
}
132132
catch (error) {
133133
const errMsg = error instanceof Error ? error.message : String(error);
134-
core.setFailed(`Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${errMsg}`);
134+
core.setFailed(`Invalid version provided. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases. ${errMsg}`);
135135
cleanup();
136136
return;
137137
}
@@ -141,7 +141,7 @@ function run() {
141141
let bootstrapVerifierPath;
142142
try {
143143
// Download bootstrap version and validate SHA256 checksum
144-
bootstrapVerifierPath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`, `${bootstrapDir}/${BINARY_NAME}`);
144+
bootstrapVerifierPath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`, `${bootstrapDir}/${BINARY_NAME}`);
145145
}
146146
catch (error) {
147147
const errMsg = error instanceof Error ? error.message : String(error);
@@ -158,7 +158,7 @@ function run() {
158158
let downloadedBinaryPath;
159159
try {
160160
// Download requested version binary and provenance
161-
downloadedBinaryPath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`, `${installDir}/${BINARY_NAME}`);
161+
downloadedBinaryPath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`, `${installDir}/${BINARY_NAME}`);
162162
}
163163
catch (error) {
164164
const errMsg = error instanceof Error ? error.message : String(error);
@@ -168,7 +168,7 @@ function run() {
168168
}
169169
let downloadedProvenancePath;
170170
try {
171-
downloadedProvenancePath = yield tc.downloadTool(`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`, `${installDir}/${PROVENANCE_NAME}`);
171+
downloadedProvenancePath = yield tc.downloadTool(`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`, `${installDir}/${PROVENANCE_NAME}`);
172172
}
173173
catch (error) {
174174
const errMsg = error instanceof Error ? error.message : String(error);
@@ -181,7 +181,7 @@ function run() {
181181
const { exitCode, stdout, stderr } = yield exec.getExecOutput(`${bootstrapVerifierPath}`, [
182182
`-artifact-path=${downloadedBinaryPath}`,
183183
`-provenance=${downloadedProvenancePath}`,
184-
`-source=github.com/slsa-framework/slsa-verifier`,
184+
`-source=github.com/kpk47/slsa-verifier`,
185185
`-tag=${version}`,
186186
]);
187187
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/{repository_owner}/{repository}/releases",
4949
{
50-
repository_owner: "slsa-framework",
50+
repository_owner: "kpk47",
5151
repository: "slsa-verifier",
5252
}
5353
);
5454
for (const release of releases) {
5555
const { data: commit } = await octokit.request(
5656
"GET /reps/{repository_owner}/{repository}/git/ref/tags/{tagName}",
5757
{
58-
repository_owner: "slsa-framework",
58+
repository_owner: "kpk47",
5959
repository: "slsa-verifier",
6060
}
6161
);
@@ -66,7 +66,7 @@ export async function getVerifierVersion(actionRef: string): Promise<string> {
6666
}
6767
}
6868
throw new Error(
69-
`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases.`
69+
`Invalid version provided: ${actionRef}. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases.`
7070
);
7171
}
7272

@@ -102,7 +102,7 @@ async function run(): Promise<void> {
102102
} catch (error: unknown) {
103103
const errMsg = error instanceof Error ? error.message : String(error);
104104
core.setFailed(
105-
`Invalid version provided. For the set of valid versions, see https://github.com/slsa-framework/slsa-verifier/releases. ${errMsg}`
105+
`Invalid version provided. For the set of valid versions, see https://github.com/kpk47/slsa-verifier/releases. ${errMsg}`
106106
);
107107
cleanup();
108108
return;
@@ -116,7 +116,7 @@ async function run(): Promise<void> {
116116
try {
117117
// Download bootstrap version and validate SHA256 checksum
118118
bootstrapVerifierPath = await tc.downloadTool(
119-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`,
119+
`https://github.com/kpk47/slsa-verifier/releases/download/${BOOTSTRAP_VERSION}/slsa-verifier-linux-amd64`,
120120
`${bootstrapDir}/${BINARY_NAME}`
121121
);
122122
} catch (error: unknown) {
@@ -142,7 +142,7 @@ async function run(): Promise<void> {
142142
try {
143143
// Download requested version binary and provenance
144144
downloadedBinaryPath = await tc.downloadTool(
145-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`,
145+
`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64`,
146146
`${installDir}/${BINARY_NAME}`
147147
);
148148
} catch (error: unknown) {
@@ -154,7 +154,7 @@ async function run(): Promise<void> {
154154
let downloadedProvenancePath;
155155
try {
156156
downloadedProvenancePath = await tc.downloadTool(
157-
`https://github.com/slsa-framework/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`,
157+
`https://github.com/kpk47/slsa-verifier/releases/download/${version}/slsa-verifier-linux-amd64.intoto.jsonl`,
158158
`${installDir}/${PROVENANCE_NAME}`
159159
);
160160
} catch (error: unknown) {
@@ -171,7 +171,7 @@ async function run(): Promise<void> {
171171
[
172172
`-artifact-path=${downloadedBinaryPath}`,
173173
`-provenance=${downloadedProvenancePath}`,
174-
`-source=github.com/slsa-framework/slsa-verifier`,
174+
`-source=github.com/kpk47/slsa-verifier`,
175175
`-tag=${version}`,
176176
]
177177
);

0 commit comments

Comments
 (0)