Skip to content

Merge pull request #25 from DrPlumcake/drplum-24 #37

Merge pull request #25 from DrPlumcake/drplum-24

Merge pull request #25 from DrPlumcake/drplum-24 #37

name: Super-sast-Artifact
on: push
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.7' ]
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- name: GitHub env variables
run: |
echo "$GITHUB_API_URL"
echo "$GITHUB_REPOSITORY"
echo "$GITHUB_SHA"
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t super-sast-action:0.6 .
- name: Run Docker Image
run: |
ls -lah
docker run --name super-sast-artifact -v $PWD:/code -e M2_HOME=/code -e HOME=/code -e GITHUB_API_URL=${{ github.api_url }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_SHA=${{ github.sha }} -e INPUT_REPO_TOKEN=${{ github.token }} -w /code -u "$(id -u)" super-sast-action:0.6
- uses: actions/upload-artifact@v3
with:
name: super-sast-artifact
path: |
super-sast.log
log_dir/