-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into HYP-184
- Loading branch information
Showing
108 changed files
with
5,529 additions
and
901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Requirements Update | ||
|
||
on: | ||
schedule: | ||
- cron: '0 12 * * 1' # runs at 12:00 UTC on Mondays | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
only-labels: dependencies,automated pr | ||
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 7 days.' | ||
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' | ||
days-before-pr-stale: 7 | ||
days-before-pr-close: 7 | ||
delete-branch: true | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: development | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dev Python packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r dev-requirements.txt | ||
- name: Check for pip-tools upgrades | ||
run: | | ||
pip-compile --generate-hashes \ | ||
--allow-unsafe \ | ||
--upgrade \ | ||
--output-file requirements.txt requirements.in | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
base: development | ||
branch: requirements-updates | ||
branch-suffix: timestamp | ||
delete-branch: true | ||
commit-message: "fix(requirements): Updated Python requirements" | ||
title: 'Python Requirements Updates' | ||
body: > | ||
This PR is auto-generated by Github Actions job [requirements-update]. | ||
labels: dependencies, automated pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Scan | ||
|
||
on: | ||
push: | ||
branches: [ master, development ] | ||
pull_request: | ||
branches: [ master, development ] | ||
schedule: | ||
- cron: '0 12 * * 1' # runs at 12:00 UTC on Mondays | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
scan: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Set image name | ||
id: setimagename | ||
run: | | ||
echo "Image name: $GITHUB_REPOSITORY:$GITHUB_SHA" | ||
echo "::set-output name=imagename::$GITHUB_REPOSITORY:$GITHUB_SHA" | ||
- name: Build the image | ||
id: buildimage | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: false | ||
tags: ${{ steps.setimagename.outputs.imagename }} | ||
|
||
- name: Check whether container scanning should be enabled | ||
id: checkcontainerscanning | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
run: | | ||
echo "Enable container scanning: ${{ env.SNYK_TOKEN != '' }}" | ||
echo "::set-output name=enabled::${{ env.SNYK_TOKEN != '' }}" | ||
- name: Run Snyk to check Docker image for vulnerabilities | ||
uses: snyk/actions/docker@master | ||
if: steps.checkcontainerscanning.outputs.enabled == 'true' | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: ${{ steps.setimagename.outputs.imagename }} | ||
args: --file=Dockerfile | ||
|
||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v1 | ||
if: steps.checkcontainerscanning.outputs.enabled == 'true' | ||
with: | ||
sarif_file: snyk.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ master, development ] | ||
pull_request: | ||
branches: [ master, development ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Set image name | ||
id: setimagename | ||
run: | | ||
echo "Image name: $GITHUB_REPOSITORY:$GITHUB_SHA" | ||
echo "::set-output name=imagename::$GITHUB_REPOSITORY:$GITHUB_SHA" | ||
- name: Build the image | ||
id: buildimage | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: false | ||
tags: ${{ steps.setimagename.outputs.imagename }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
app/assets/* | ||
*.pyc | ||
*/.DS_Store | ||
.DS_Store | ||
*.log | ||
app/db.sqlite3 | ||
app/hypatio/local_settings.py | ||
app/assets/* | ||
*.pyc | ||
*/.DS_Store | ||
.DS_Store | ||
*.log | ||
app/db.sqlite3 | ||
app/hypatio/local_settings.py | ||
.vscode/settings.json | ||
backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
rev: v4.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-byte-order-marker | ||
- id: check-merge-conflict | ||
- id: detect-aws-credentials | ||
- repo: https://github.com/jazzband/pip-tools | ||
rev: 6.8.0 | ||
hooks: | ||
- id: pip-compile | ||
name: pip-compile dev-requirements.in | ||
args: [dev-requirements.in, --upgrade, --generate-hashes, --allow-unsafe, --output-file, dev-requirements.txt] | ||
files: ^dev-requirements\.(in|txt)$ | ||
- id: pip-compile | ||
name: pip-compile requirements.in | ||
args: [requirements.in, --upgrade, --generate-hashes, --allow-unsafe, --output-file, requirements.txt] | ||
files: ^requirements\.(in|txt)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.conf.urls import url | ||
from django.urls import re_path | ||
from .views import contact_form | ||
|
||
app_name = 'contact' | ||
urlpatterns = ( | ||
url(r'^(?P<project_key>[^/]+)/?$', contact_form, name='contact_form'), | ||
url(r'^', contact_form, name='contact_form'), | ||
re_path(r'^(?P<project_key>[^/]+)/?$', contact_form, name='contact_form'), | ||
re_path(r'^', contact_form, name='contact_form'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.