Skip to content

Commit

Permalink
Remove checkout option, no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rkervella committed Apr 10, 2021
1 parent fdd0d03 commit 579a82c
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/codeql-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
runs-on: ubuntu-latest

steps:

# Setup go environment
- name: Go 1.16
uses: actions/setup-go@v2
with:
go-version: '^1.16'
go-version: "^1.16"

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand All @@ -31,13 +30,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
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.
# Only include this step if you are running this workflow on pull requests.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: OS Packages
- name: OS Packages
run: |
sudo apt-get update --fix-missing && sudo apt-get -y install \
git build-essential zlib1g zlib1g-dev wget zip unzip \
Expand Down Expand Up @@ -74,11 +67,11 @@ jobs:
uses: github/codeql-action/init@v1
with:
config-file: ./.github/codeql/codeql-config.yml
languages: go
languages: go

# Build the server ... is this necessary though?
- run: |
make linux
make linux
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v1

0 comments on commit 579a82c

Please sign in to comment.