Skip to content

Commit

Permalink
Merge pull request #21 from GeekMasher/master
Browse files Browse the repository at this point in the history
Added GitHub Actions support
  • Loading branch information
Qwaz authored Jan 5, 2022
2 parents 85f612d + bdd7b09 commit a40b4d0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/action.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Pulling latest release from GitHub Packages
# Not using the default Dockerfile because that will cause
# users to rebuild the container every time its run
FROM ghcr.io/sslab-gatech/rudra:master

ENTRYPOINT ["cargo", "rudra"]

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ docker-cargo-rudra <directory>

The log and report are printed to stderr by default.

### Run Rudra as GitHub Action

Rudra can be run as a GitHub Action allowing the static analyze to be used in an Action workflow.

```yml
# Run Rudra
- name: Rudra
uses: sslab-gatech/Rudra@master
```
### Run Rudra with different compiler version
Rudra is tied to a specific Rust compiler version,
Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Rudra'
description: 'Rudra is a static analyzer to detect common undefined behaviors in Rust programs'

inputs:
directory:
description: 'Scan Directory'
default: '.'

runs:
using: 'docker'
image: '.github/action.Dockerfile'
# args:
# - ${{ inputs.directory }}

0 comments on commit a40b4d0

Please sign in to comment.