Skip to content

Commit a4275a6

Browse files
add r/w permissions to x86-build job in the image deploy pipeline (#70)
* added r/w permission to build for amd job * made error handling more idiomatic to satisfy linter
1 parent 8a2cb50 commit a4275a6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/containerize-and-push.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ jobs:
8787
build-amd64:
8888
needs: setup
8989
runs-on: ubuntu-latest
90+
permissions:
91+
contents: read
92+
packages: write
9093
outputs:
9194
digest: ${{ steps.build_and_push.outputs.digest }}
9295
steps:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ tarpaulin-report.html
1919
.vscode/settings.json
2020
reports/
2121

22-
.cargo/
22+
.cargo/
23+
24+
# Mac specific
25+
.DS_Store

utils/hello-world-protos/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() -> std::io::Result<()> {
3030
"helloworld",
3131
) {
3232
let error_message = format!("Failed to fetch and build protobuf file: {err:?}");
33-
return Err(std::io::Error::new(std::io::ErrorKind::Other, error_message));
33+
return Err(std::io::Error::other(error_message));
3434
}
3535

3636
Ok(())

0 commit comments

Comments
 (0)