diff --git a/.github/workflows/CodeGuru Pipeline.yml b/.github/workflows/CodeGuru Pipeline.yml new file mode 100644 index 00000000..75f28959 --- /dev/null +++ b/.github/workflows/CodeGuru Pipeline.yml @@ -0,0 +1,35 @@ +name: CodeGuru Pipeline run + +on: + workflow_dispatch: +jobs: + CodeGuru-pipeline-run: + runs-on: ubuntu-latest + + steps: + +# Step 1: Checkout the repository and provide your AWS credentials + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 # Region to access CodeGuru + +# Step 2: Add CodeGuru Reviewer Action + - name: CodeGuru Reviewer + uses: aws-actions/codeguru-reviewer@v1.1 + with: # build artifact(s) directory + s3_bucket: codeguru-reviewer-my-bucket-2023 # S3 Bucket with "codeguru-reviewer-*" prefix + +# Step 3: Upload results into GitHub + - name: Upload review result + if: ${{ github.event_name != 'push' }} + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: codeguru-results.sarif.json diff --git a/snakepython.py b/snakepython.py new file mode 100644 index 00000000..5e86bab3 --- /dev/null +++ b/snakepython.py @@ -0,0 +1,17 @@ +# importing libraries +import pygame +import time +import random + +snake_speed = 15 + +# Window size +window_x = 720 +window_y = 480 + +# defining colors +black = pygame.Color(0, 0, 0) +white = pygame.Color(255, 255, 255) +red = pygame.Color(255, 0, 0) +green = pygame.Color(0, 255, 0) +blue = pygame.Color(0, 0, 255)