diff --git a/.github/workflows/safe.yaml b/.github/workflows/safe.yaml new file mode 100644 index 0000000..0e24b05 --- /dev/null +++ b/.github/workflows/safe.yaml @@ -0,0 +1,52 @@ +name: Erlang CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: "24" + rebar3-version: "3.20.0" + - name: Compile + run: rebar3 compile + + - name: Upload _build directory + uses: actions/upload-artifact@v3 + with: + name: build-artifact + path: _build + + security-check: + runs-on: ubuntu-latest + needs: build + container: + image: erlangsolutions/safe:1.1.0-otp-24 + steps: + - name: Download _build directory + uses: actions/download-artifact@v3 + with: + name: build-artifact + path: _build + + - uses: actions/checkout@v4 + - run: safe start + env: + SAFE_LICENSE: ${{ secrets.SAFE_LICENSE }} + - name: Persist results + if: always() + uses: actions/upload-artifact@v3 + with: + name: project-safe-results + path: _results/aprs.me.safe diff --git a/.safe/config.json b/.safe/config.json new file mode 100644 index 0000000..e492d41 --- /dev/null +++ b/.safe/config.json @@ -0,0 +1,10 @@ +{ + "output": "stdio", + "version": "1.0", + "project": { + "name": "aprs.me", + "type": "beam", + "apps": [], + "paths": [] + } +} \ No newline at end of file