Skip to content

step-security/mage-action

Repository files navigation

StepSecurity Maintained Action

Mage Logo

Mage Action

GitHub Action for Mage

GitHub release


Mage Action

Usage

Quick start

name: mage

on:
  pull_request:
  push:

jobs:
  mage:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v6
      -
        name: Set up Go
        uses: actions/setup-go@v6
      -
        name: Run Mage
        uses: step-security/mage-action@v3
        with:
          version: latest
          args: build

Install Only

name: mage

on:
  pull_request:
  push:

jobs:
  mage:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v6
      -
        name: Set up Go
        uses: actions/setup-go@v6
      -
        name: Run Mage
        uses: step-security/mage-action@v3
        with:
          install-only: true
      -
        name: Show Mage version
        run: mage --version

Customizing

inputs

The following inputs can be used as step.with keys:

Name Type Default Description
version String latest Mage version. Example: v1.9.0
args String Arguments to pass to Mage
workdir String . Working directory (below repository root)
install-only Bool false Just install Mage
cache-binary Bool true Cache binary to GitHub Actions cache backend

License

MIT. See LICENSE for more details.

About

GitHub Action for Mage. Secure drop-in replacement for magefile/mage-action.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors