Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source scan integration configurable image #142

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Apr 8, 2024

this adds ability to configure image via Cargo.toml :

[package.metadata.near.reproducible_build]
image = "docker.io/sourcescan/cargo-near:0.6.0-builder"
image_digest = "sha256:d21001ebc889478deac105a07efbefcd667d6a2e927e8ea5f1526cd1877ae84a"

cargo doesn't automatically populate package.metadata with workspace.metadata near-examples/update-migrate-rust@d3259c3

        # package
        ...
        metadata: Object {
            "near": Object {
                "reproducible_build": Object {
                    "image": Object {
                        "workspace": Bool(true),
                    },
                },
            },
        },
        ...
        # workspace
        workspace_metadata: Object {
            "near": Object {
                "reproducible_build": Object {
                    "image": String("docker.io/sourcescan/cargo-near:0.6.0@sha256:bf488476d9c4e49e36862bbdef2c595f88d34a295fd551cc65dc291553849471"),
                },
            },
        },

@dj8yfo dj8yfo force-pushed the source-scan-integration-configurable-image branch from 3d2ff2e to 2bbe88c Compare April 8, 2024 11:46
@dj8yfo dj8yfo marked this pull request as ready for review April 8, 2024 11:59
@dj8yfo dj8yfo force-pushed the source-scan-integration-configurable-image branch from 2bbe88c to 1abee91 Compare April 8, 2024 19:04
@frol frol merged commit 7afc79b into near:source-scan-integration Apr 8, 2024
13 of 14 checks passed
@dj8yfo dj8yfo deleted the source-scan-integration-configurable-image branch May 13, 2024 13:37
@dj8yfo dj8yfo mentioned this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants