Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

.NET Reactor Install Action

This is the .NET Reactor Install Action. It installs .NET Reactor and allows you to set up a license if needed. You also need the .NET Reactor Run Action to use .NET Reactor.

Action 1: 'Install .NET Reactor'

This action downloads and installs .NET Reactor based on the operating system of the GitHub Actions runner. If a license is not specified, .NET Reactor runs in demo mode.

Inputs

  • version: (Optional) Specify the exact version of .NET Reactor to install, including major, minor, build, and revision numbers (e.g., 7.5.0.0).
  • license: (Optional) Provide the .NET Reactor license as either a file path or a base64-encoded string. Without a license, .NET Reactor will run in demo mode.

Example Usage

steps:
- name: Install .NET Reactor
  uses: eziriz/dotnet-reactor-install-action@v1
  with:
    version: '7.5.0.0'
    license: ${{ secrets.NET_REACTOR_LICENSE }}

Action 2: 'Run .NET Reactor'

This action runs .NET Reactor to obfuscate .NET assemblies. It uses the configuration defined in the 'Install .NET Reactor' action.

Inputs

  • project_file: (Optional) Path to the .NET Reactor project file.
  • input_path: (Optional) Input path of the .NET assembly to obfuscate.
  • output_path: (Optional) Output path for the obfuscated .NET assembly.
  • additional_arguments: (Optional) Additional command-line parameters for .NET Reactor. Use -licensed to ensure this action fails with error code 101 if .NET Reactor is not fully licensed. If .NET Reactor doesn't run as full version the protected software will stop working after 14 days. This can help identify licensing issues early in the pipeline.

Example Usage

steps:
- name: Run .NET Reactor
  uses: eziriz/dotnet-reactor-run-action@v1
  with:
    input_path: '$GITHUB_WORKSPACE\path\to\assembly.dll'
    output_path: '$GITHUB_WORKSPACE\path\to\obfuscated\<AssemblyFileName>'
    additional_arguments: '-licensed'

Full Workflow Example

Here's a full example of a workflow that installs and runs .NET Reactor:

name: .NET Assembly Obfuscation

on: [push]

jobs:
  obfuscate:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Install .NET Reactor
      uses: eziriz/dotnet-reactor-install-action@v1
      with:
        version: '7.5.0.0'
        license: ${{ secrets.NET_REACTOR_LICENSE }}

    - name: Build Assembly
      run: dotnet build -c Release

    - name: Run .NET Reactor
      uses: eziriz/dotnet-reactor-run-action@v1
      with:
        input_path: '$GITHUB_WORKSPACE\bin\Release\myapp.dll'
        output_path: '$GITHUB_WORKSPACE\bin\Release\obfuscated\<AssemblyFileName>'
        additional_arguments: '-licensed'

If you're feeling motivated, come visit our website.

Releases

Packages

Contributors