Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Move SAST to its own workflow, revert checkout behavior on others
Browse files Browse the repository at this point in the history
  • Loading branch information
myoung34 committed Jul 8, 2020
1 parent 8c806a7 commit 15da0b4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 29 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

Expand Down Expand Up @@ -49,7 +43,7 @@ jobs:
needs: [test]
steps:
- name: Copy Repo Files
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}


- name: Setup python
uses: actions/setup-python@v1
with:
Expand All @@ -49,7 +39,7 @@ jobs:
needs: [test]
steps:
- name: Copy Repo Files
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
Expand All @@ -69,7 +59,7 @@ jobs:
needs: [test]
steps:
- name: Copy Repo Files
uses: actions/checkout@master
uses: actions/checkout@v2
- name: get version
run: echo "::set-env name=TAG::$(echo ${GITHUB_REF} | sed -e "s/refs\/tags\///g")"
- name: Set up Docker Buildx
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Code scanning - action"

on:
push:
schedule:
- cron: '59 23 * * *'

jobs:
CodeQL-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 0 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}


- name: Setup python
uses: actions/setup-python@v1
with:
Expand Down

0 comments on commit 15da0b4

Please sign in to comment.