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

docs: add instructions on using repo finder #350

Merged
merged 6 commits into from
Jul 5, 2023
Merged

Conversation

benmss
Copy link
Member

@benmss benmss commented Jun 30, 2023

Adds instructions for using the repo finder feature to the "using" docs page.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 30, 2023
@benmss benmss linked an issue Jun 30, 2023 that may be closed by this pull request
docs/source/pages/using.rst Outdated Show resolved Hide resolved
docs/source/pages/using.rst Outdated Show resolved Hide resolved
docs/source/pages/using.rst Outdated Show resolved Hide resolved
Signed-off-by: Ben Selwyn-Smith <[email protected]>
Comment on lines 172 to 174
---------------------------
Analyzing more dependencies
---------------------------
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to move this section as a subsection of Analyzing with an SBOM. What do you think?

docs/source/pages/using.rst Outdated Show resolved Hide resolved
Signed-off-by: Ben Selwyn-Smith <[email protected]>
-------------------------------------
Analyzing a locally cloned repository
-------------------------------------

If you have a local repository that you want to analyze, Macaron also supports running the analysis against a local repository.

''''''''''''''''''
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this line is added accidentally and is causing an error: https://github.com/oracle/macaron/actions/runs/5450632046/jobs/9916079385?pr=350#step:8:9763

Signed-off-by: Ben Selwyn-Smith <[email protected]>

.. note:: The Repository Finding feature currently only works for Java projects via SCM meta data found within artifact POM files.

This feature is enabled by default. To disable, or configure its behaviour in other ways, a custom ``defaults.ini`` should be passed to Macaron during execution. Under the ``repofinder.java`` header, five options exist: ``find_repos``, ``artifact_repositories``, ``repo_pom_paths``, ``find_parents``, ``artifact_ignore_list``. These options behave as follows:
Copy link
Member

Choose a reason for hiding this comment

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

It would be helpful to add a reference like this:

See :ref:`dump-defaults <reference to docs/source/pages/cli_usage/action_dump_defaults.rst >`, the CLI command to dump the default configurations in ``defaults.ini``. After making changes, see :ref:`analyze <analyze-action-cli>` CLI command for the option to pass the modified ``defaults.ini`` file.

You need to add a reference in docs/source/pages/cli_usage/action_dump_defaults.rst but analyze-action-cli reference already exists.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've tried to. Not sure if it's displaying as it should be though.

Signed-off-by: Ben Selwyn-Smith <[email protected]>
Signed-off-by: Ben Selwyn-Smith <[email protected]>
@benmss benmss merged commit 7899d8e into staging Jul 5, 2023
@behnazh-w behnazh-w deleted the repo-finder-docs-317 branch July 26, 2023 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a tutorial for the repo finder feature to the website
3 participants