Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

technical enhancement + logo #1008

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c10becc
Add files via upload
starlightretailceo May 21, 2024
06adf2c
Add files via upload
starlightretailceo May 22, 2024
7fe54d6
Merge branch 'microsoft:main' into main
starlightretailceo May 23, 2024
d57ffb4
Merge branch 'microsoft:main' into main
starlightretailceo May 29, 2024
68963ab
Add files via upload
starlightretailceo May 31, 2024
90ea20f
Update Contoso-ff70ad88.svg
starlightretailceo May 31, 2024
bf2df47
Merge branch 'microsoft:main' into main
starlightretailceo May 31, 2024
b04b9be
Delete static/assets/Contoso-ff70ad88.svg
starlightretailceo May 31, 2024
97081ff
Merge branch 'microsoft:main' into main
starlightretailceo Jun 1, 2024
2fdd164
Create ossar.yml
starlightretailceo Jun 2, 2024
eb3ed10
Merge branch 'microsoft:main' into main
starlightretailceo Jun 6, 2024
a73faee
Bump the pip group with 7 updates
dependabot[bot] Jun 17, 2024
60d37f8
Merge branch 'microsoft:main' into main
starlightretailceo Jun 18, 2024
13ac07c
Bump openai from 1.6.1 to 1.35.3
dependabot[bot] Jun 24, 2024
cc000ec
Add or update the Azure App Service build and deployment workflow config
starlightretailceo Jun 29, 2024
be11828
Bump the npm_and_yarn group across 1 directory with 2 updates
dependabot[bot] Jun 29, 2024
72b32bd
Merge pull request #13 from STARLIGHTRETAIL/dependabot/npm_and_yarn/f…
starlightretailceo Jun 30, 2024
2be7fef
Merge pull request #11 from STARLIGHTRETAIL/dependabot/pip/pip-23efc6…
starlightretailceo Jun 30, 2024
c347ff6
Merge pull request #12 from STARLIGHTRETAIL/dependabot/pip/openai-1.35.3
starlightretailceo Jun 30, 2024
3c3d6e2
Delete static/assets/StarlightRetailInc-ff70ad88.svg
starlightretailceo Jun 30, 2024
6201ade
Update Contoso-ff70ad88.svg
starlightretailceo Jun 30, 2024
24274ba
Delete static/assets/squareLogo.png
starlightretailceo Jun 30, 2024
3440642
ci(Mergify): configuration update
starlightretailceo Jun 30, 2024
bd6df41
Merge pull request #16 from STARLIGHTRETAIL/mergify/starlightretailce…
starlightretailceo Jul 1, 2024
7c32f0f
Merge branch 'microsoft:main' into main
starlightretailceo Jul 17, 2024
e877fb9
Update Contoso.svg
starlightretailceo Jul 17, 2024
b533661
Create codeql.yml
starlightretailceo Jul 17, 2024
3d5366b
Merge branch 'main' into main
starlightretailceo Jul 24, 2024
032985f
Add or update the Azure App Service build and deployment workflow config
starlightretailceo Jul 28, 2024
1f6f9e9
Merge branch 'main' into main
starlightretailceo Aug 5, 2024
b576129
Merge branch 'main' into main
starlightretailceo Aug 6, 2024
675cfe3
Merge branch 'microsoft:main' into main
starlightretailceo Aug 11, 2024
e8db8fb
Merge branch 'microsoft:main' into main
starlightretailceo Aug 17, 2024
0645fe2
Merge branch 'main' into main
starlightretailceo Aug 24, 2024
bbe24b6
Merge branch 'microsoft:main' into main
starlightretailceo Sep 2, 2024
2e71fa3
Add or update the Azure App Service build and deployment workflow config
starlightretailceo Sep 8, 2024
552e82b
Merge branch 'microsoft:main' into main
starlightretailceo Sep 8, 2024
55cc6df
Merge branch 'microsoft:main' into main
starlightretailceo Sep 17, 2024
be0702d
Merge branch 'microsoft:main' into main
starlightretailceo Sep 21, 2024
6a1e53d
Merge branch 'microsoft:main' into main
starlightretailceo Sep 25, 2024
5facce9
Merge branch 'main' into main
starlightretailceo Oct 4, 2024
7a2245c
Merge branch 'main' into main
starlightretailceo Oct 31, 2024
3608096
Add or update the Azure App Service build and deployment workflow config
starlightretailceo Nov 3, 2024
eaa276e
Revert "Bump openai from 1.6.1 to 1.35.3"
starlightretailceo Dec 18, 2024
dadda69
Merge pull request #40 from STARLIGHTRETAIL/revert-12-dependabot/pip/…
starlightretailceo Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '19 18 * * 2'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - starlight-chat-assistant

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: '3.11'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate

- name: Install dependencies
run: pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v3
with:
name: python-app
path: |
release.zip
!venv/

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'starlightretail'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: python-app

- name: Unzip artifact for deployment
run: unzip release.zip


- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'starlight-chat-assistant'
slot-name: 'starlightretail'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A06D9F03082E40CD9BC785FC19EF469F }}
78 changes: 78 additions & 0 deletions .github/workflows/main_starlight-chat-assistant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - Starlight-Chat-Assistant

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python version
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate

- name: Install dependencies
run: pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v4
with:
name: python-app
path: |
release.zip
!venv/

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: python-app

- name: Unzip artifact for deployment
run: unzip release.zip


- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_42040DB2CA9B45EDAF05BE44A26DA845 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_58E6697D4844423FBB3F6685E1F5DA23 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_1B405CD7D60B4EE2B67D29A71799D75B }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'Starlight-Chat-Assistant'
slot-name: 'Production'

56 changes: 56 additions & 0 deletions .github/workflows/ossar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow integrates a collection of open source static analysis tools
# with GitHub code scanning. For documentation, or to provide feedback, visit
# https://github.com/github/ossar-action
name: OSSAR

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '28 9 * * 2'

permissions:
contents: read

jobs:
OSSAR-Scan:
# OSSAR runs on windows-latest.
# ubuntu-latest and macos-latest support coming soon
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
# - name: Install .NET
# uses: actions/setup-dotnet@v2
# with:
# dotnet-version: '3.1.x'

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
id: ossar

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
12 changes: 12 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pull_request_rules:
- name: Request review from team
description: Request review from a specific team when checks are green.
conditions:
- '-closed'
- '#approved-reviews-by=0'
- '#changes-requested-reviews-by=0'
- review-requested!=@TEAM_NAME_HERE
actions:
request_reviews:
teams:
- TEAM_NAME_HERE
1 change: 1 addition & 0 deletions Starlight-Chat-Assistant.PublishSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<publishData><publishProfile profileName="Starlight-Chat-Assistant - Web Deploy" publishMethod="MSDeploy" publishUrl="starlight-chat-assistant.scm.azurewebsites.net:443" msdeploySite="Starlight-Chat-Assistant" userName="$Starlight-Chat-Assistant" userPWD="SCQaq5qZx48t8eumuD1irwW4Kb1GXyauk7MnpPPvAYbhtmd9Y2WEv78Mk02t" destinationAppUrl="https://starlight-chat-assistant.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="https://portal.azure.com" webSystem="WebSites"><databases /></publishProfile><publishProfile profileName="Starlight-Chat-Assistant - FTP" publishMethod="FTP" publishUrl="ftps://waws-prod-bay-171.ftp.azurewebsites.windows.net/site/wwwroot" ftpPassiveMode="True" userName="Starlight-Chat-Assistant\$Starlight-Chat-Assistant" userPWD="SCQaq5qZx48t8eumuD1irwW4Kb1GXyauk7MnpPPvAYbhtmd9Y2WEv78Mk02t" destinationAppUrl="https://starlight-chat-assistant.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="https://portal.azure.com" webSystem="WebSites"><databases /></publishProfile><publishProfile profileName="Starlight-Chat-Assistant - Zip Deploy" publishMethod="ZipDeploy" publishUrl="starlight-chat-assistant.scm.azurewebsites.net:443" userName="$Starlight-Chat-Assistant" userPWD="SCQaq5qZx48t8eumuD1irwW4Kb1GXyauk7MnpPPvAYbhtmd9Y2WEv78Mk02t" destinationAppUrl="https://starlight-chat-assistant.azurewebsites.net" SQLServerDBConnectionString="" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="https://portal.azure.com" webSystem="WebSites"><databases /></publishProfile></publishData>
Loading