Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "codeql-extractor-action"
repository: "advanced-security/codeql-extractor-action"
version: 0.1.1
version: 0.1.2

ecosystems:
- Docs
Expand Down
35 changes: 34 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,42 @@ If you have an idea for a new feature or enhancement, please open an issue on Gi

- [Rust](https://www.rust-lang.org/tools/install)
- [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
- [CodeQL](https://codeql.github.com/docs/codeql-cli/getting-started/)
- [CodeQL](https://codeql.github.com/docs/codeql-cli/getting-started/) (optional as the action will download it for you)
- `gh-codeql` is a great tool to help you with CodeQL CLI.

## Local Setup

### Environment Variables

To run the action locally, you need to set up the following environment variables:

```env
# DEBUG=1
GITHUB_REPOSITORY=advanced-security/codeql-extractor-action

INPUT_EXTRACTORS=advanced-security/codeql-extractor-iac@v0.5.0
INPUT_PACKS=advanced-security/iac-queries@0.5.0
INPUT_LANGUAGES=iac
```

These are the inputs to the action. You can modify them as needed.

### Building the Project

To build the project, use the following command:

```bash
cargo build --release
```

And to install it on the system, use:

```bash
cargo install --path .
```

This means it can be run from anywhere using the command `codeql-extractor-action`.

### Running Tests

To run the tests, use the following command:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "codeql-extractor-action"
description = "GitHub Action for CodeQL Extractors"
version = "0.1.1"
version = "0.1.2"
authors = ["GeekMasher"]

license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This action is designed to be used in conjunction with the [CodeQL][CodeQL] anal

```yml
- name: "CodeQL Extractor Action"
uses: advanced-security/codeql-extractor-action@v0.1.1
uses: advanced-security/codeql-extractor-action@v0.1.2
with:
# Repository reference (e.g. "owner/repo", "owner/repo@ref")
extractor: "advanced-security/codeql-extractor-iac"
Expand Down
2 changes: 1 addition & 1 deletion action.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ghcr.io/advanced-security/codeql-extractor-action:v0.1.0
FROM ghcr.io/advanced-security/codeql-extractor-action:v0.1.2

ENTRYPOINT [ "codeql-extractor-action" ]
Loading