You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyze a public GitHub repository (and optionally the repositories of its dependencies) to determine its SLSA posture. We currently support `SLSA v0.1 <https://slsa.dev/spec/v0.1/>`_. The support for `SLSA v1.0 <https://slsa.dev/spec/v1.0/>`_ will be added in future.
The path to the Jinja2 html template (please make sure to use .html or .j2 extensions).
64
+
65
+
-----------
66
+
Environment
67
+
-----------
68
+
69
+
``GITHUB_TOKEN`` – The GitHub personal access token is needed for to run the analysis. For more information on how to obtain a GitHub token, see instructions in :ref:`Prepare GitHub access token <prepare-github-token>`.
Dumps the ``defaults.ini`` configuration file used by Macaron to the output directory. You can make changes to this configuration file and pass it to Macaron using the ``--defaults-path`` option. See :ref:`Analyze <analyze-action-cli>` for more information.
.. Copyright (c) 2023 - 2023, Oracle and/or its affiliates. All rights reserved.
2
+
.. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3
+
4
+
.. _cli-usage:
5
+
6
+
==================
7
+
Command Line Usage
8
+
==================
9
+
10
+
Use the bash script ``run_macaron.sh`` to run Macaron as a Docker container (for more information on how to get this script, please see :ref:`Download <download-macaron>`).
Macaron's CLI has multiple common flags (e.g ``-h``, ``-V``) and different action commands (e.g. ``analyze``), which have their own set of flags.
21
+
22
+
.. note:: Running ``--help`` on the main entry ``macaron`` will only print out the help for common flags. To print the help messages for action-specific flags, please provide the name of the action you want to know about. For example: ``./run_macaron.sh analyze --help``. The documented flags for each action can be found at `Action Commands`_.
Copy file name to clipboardExpand all lines: docs/source/pages/installation.rst
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ Prerequisites
13
13
- Installations of ``wget`` or ``curl`` and ``bash`` must be available and on the path.
14
14
- Docker (or docker equivalent for your host OS) must be installed, with a docker command line equivalent to Docker 17.06 (Oracle Container Runtime 19.03) and the user should be a member of the operating system group ``docker`` (to run Docker in `rootless mode <https://docs.docker.com/engine/security/rootless/>`_).
15
15
16
+
.. _download-macaron:
17
+
16
18
--------
17
19
Download
18
20
--------
@@ -41,13 +43,15 @@ To verify your setup, go to the directory containing the downloaded ``run_macaro
41
43
42
44
.. note:: In the first execution, this script will download the Macaron Docker image from ``ghcr.io/oracle-samples/macaron`` which can take some time. However, the next time you run it, the docker image available on your local host will be used.
43
45
44
-
.. note:: By default, ``latest`` is used as the tag for the downloaded image. You could specify the tag you want to run by assigning the environment variable ``MACARON_IMAGE_TAG``. For example to run Macaron v0.1: ``MACARON_IMAGE_TAG=0.1 && ./run_macaron.sh --help``
46
+
.. note:: By default, ``latest`` is used as the tag for the downloaded image. You can choose a specific tag by assigning the environment variable ``MACARON_IMAGE_TAG``. For example to run Macaron v0.1.0 run: ``MACARON_IMAGE_TAG=v0.1.0 && ./run_macaron.sh --help``
47
+
48
+
.. _prepare-github-token:
45
49
46
50
---------------------------
47
51
Prepare GitHub access token
48
52
---------------------------
49
53
50
-
A GitHub access token is **always** required when using the **analyze** command (see example below) of Macaron as it may query information from GitHub API about public repositories. More information on this analyze command is can be found in :ref:`Using Guide<using-guide>`.
54
+
A GitHub access token is **always** required when using the **analyze** command (see example below) of Macaron as it may query information from GitHub API about public repositories. More information on this analyze command is can be found in :ref:`Using Macaron<using-macaron>`.
51
55
52
56
.. code-block:: shell
53
57
@@ -62,4 +66,4 @@ Ideally, the GitHub token must have **read** permissions for the repositories th
62
66
63
67
After generating a GitHub personal-access token, please store its value in an environment variable called ``GITHUB_TOKEN``. This environment variable will be read by Macaron for its **analyze** command.
64
68
65
-
Now that you have successfully downloaded and installed Macaron, please refer to :ref:`Using Guide<using-guide>` for the instructions on how to use Macaron.
69
+
Now that you have successfully downloaded and installed Macaron, please refer to :ref:`Using Macaron<using-macaron>` for the instructions on how to use Macaron.
Copy file name to clipboardExpand all lines: docs/source/pages/using.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
.. Copyright (c) 2023 - 2023, Oracle and/or its affiliates. All rights reserved.
2
2
.. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3
3
4
-
.. _using-guide:
4
+
.. _using-macaron:
5
5
6
6
=============
7
7
Using Macaron
@@ -98,6 +98,6 @@ We can run Macaron against the local repository at ``target`` by using this comm
98
98
99
99
With ``rest_of_args`` being the arguments to the ``analyze`` command (e.g. ``-b``, ``-d`` or ``--skip-deps`` similar to two previous examples)
100
100
101
-
The ``-lr`` flag configure Macaron to looks into ``path/to/boo/foo`` for local repositories. For more information, please see :ref:`CLI options <cli-options>`.
101
+
The ``-lr`` flag configure Macaron to looks into ``path/to/boo/foo`` for local repositories. For more information, please see :ref:`Command Line Usage <cli-usage>`.
102
102
103
103
.. note:: If ``-lr`` is not provided, Macaron will looks inside ``<working_directory>/output/git_repos/local_repos/`` whenever you provide a local path to ``-rp``.
0 commit comments