Skip to content

Conversation

@uilianries
Copy link
Member

@uilianries uilianries commented Apr 21, 2025

Hello!

This blog post is intended to present the new GitHub Action for Conan.

My first idea is to present the tool, some features supported, and a small example. Please, take a look to see if we could use another approach.

Preview based on the commit b7c78db

Screenshot 2025-04-21 at 16-14-23 Speeding Up Your GitHub Builds with the Official Conan Action

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

- **Conan Audit token:** The action allows you to specify a Conan Audit token, which can be used to authenticate with the Conan server. This is useful when you want to authenticate with a Audit server and scan your packages for vulnerabilities. Always use GitHub secrets to store your tokens and avoid exposing them in your workflow.
By default, the action will not use a Conan Audit token.

- **Configuration installation:** The action allows you to specify a list of URLs to install configuration files from. This is useful when you want to install profiles, settings, or other configuration files from a remote server. The action will download the files and install them in the Conan home folder, so you don't have to worry about managing them yourself. By default, the action will not install any configuration files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe cite the conan config install/install-pkg command, so users can at least look it up in the Conan docs, otherwise, it might be a bit challenging to understand it (a link would be good, but not necessary if we don't want to spread the user attention)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added conan config command reference in the commit b277538

uilianries and others added 2 commits April 21, 2025 15:01
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
This workflow will run every night at 01:00 a.m. UTC and will install the latest version of Conan.
It will also scan the requirements and all the transitive dependencies listed in the `conanfile.py` for expected vulnerabilities and upload the report as an artifact.
The `conanfile.py` is expected to be present in the same repository.
Finally, it will check if there are any **high** severity vulnerabilities in the json result and fail the workflow if any are found.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about showing a portion of the generated JSON and adding a bit more detail about how to use jq? To me, the post ends a bit abruptly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a JSON content with more information in the commit 8b09bce

uilianries and others added 5 commits April 21, 2025 15:15
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries
Copy link
Member Author

@czoido @memsharded Thank you for your review! I just applied your suggestions, the PR is ready for another round.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
uilianries and others added 2 commits April 21, 2025 19:41
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
uilianries and others added 4 commits April 21, 2025 19:41
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <5364255+AbrilRBS@users.noreply.github.com>
@czoido czoido merged commit 041912e into master Apr 22, 2025
@czoido czoido deleted the post/github-action branch July 14, 2025 08:11
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.

5 participants