From d4b21a34d76a351a0c56779b56a28947a2c1d904 Mon Sep 17 00:00:00 2001 From: sitoader <62118837+sitoader@users.noreply.github.com> Date: Sun, 23 Aug 2020 16:02:40 +0200 Subject: [PATCH 1/9] Create mercuryhealth-web-ci.yml --- .github/workflows/mercuryhealth-web-ci.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/mercuryhealth-web-ci.yml diff --git a/.github/workflows/mercuryhealth-web-ci.yml b/.github/workflows/mercuryhealth-web-ci.yml new file mode 100644 index 0000000..f8b6970 --- /dev/null +++ b/.github/workflows/mercuryhealth-web-ci.yml @@ -0,0 +1,29 @@ +# This is a basic workflow to help you get started with Actions + +name: mercuryhealth-web-ci + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: [push] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v1.6.0 + with: + Dotnet-version: 3.1.101 + + - run: dotnet build -c Release + - run: dotnet test -c Release + - run: dotnet publish -c Release -o mercuryhealth-we From ec5639d8ad6fbedf8d593d207b30fb37e125f74c Mon Sep 17 00:00:00 2001 From: Simona Toader Date: Sun, 23 Aug 2020 16:12:15 +0200 Subject: [PATCH 2/9] Updated file --- Controllers/WeatherForecastController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index 9965bdb..a82fb15 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -14,7 +14,7 @@ public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching", Hot }; private readonly ILogger _logger; From 3453ad25182179a067e57af2b55876cc0490562f Mon Sep 17 00:00:00 2001 From: Simona Toader Date: Sun, 23 Aug 2020 16:46:51 +0200 Subject: [PATCH 3/9] fixed bug --- Controllers/WeatherForecastController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index a82fb15..9965bdb 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -14,7 +14,7 @@ public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching", Hot + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; private readonly ILogger _logger; From 859a6fa33b45737ca5a937599d6fcde3ead5dd6b Mon Sep 17 00:00:00 2001 From: sitoader <62118837+sitoader@users.noreply.github.com> Date: Tue, 25 Aug 2020 12:06:21 +0200 Subject: [PATCH 4/9] Deploy to Azure yml --- .github/workflows/mercuryhealth-web-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/mercuryhealth-web-ci.yml b/.github/workflows/mercuryhealth-web-ci.yml index f8b6970..8afbbdf 100644 --- a/.github/workflows/mercuryhealth-web-ci.yml +++ b/.github/workflows/mercuryhealth-web-ci.yml @@ -27,3 +27,9 @@ jobs: - run: dotnet build -c Release - run: dotnet test -c Release - run: dotnet publish -c Release -o mercuryhealth-we + + - name: Deploy to Azure + uses: Azure/webapps-deploy@v1 + With: + publish-profile: ${{ secrets.AzureWebAppPublishProfile }} + package: ./mercuryhealth-we From a4706d0691d4f91b0988ef57be2a384a959ada8b Mon Sep 17 00:00:00 2001 From: sitoader <62118837+sitoader@users.noreply.github.com> Date: Tue, 25 Aug 2020 12:07:09 +0200 Subject: [PATCH 5/9] Fixed typo --- .github/workflows/mercuryhealth-web-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mercuryhealth-web-ci.yml b/.github/workflows/mercuryhealth-web-ci.yml index 8afbbdf..c79e66d 100644 --- a/.github/workflows/mercuryhealth-web-ci.yml +++ b/.github/workflows/mercuryhealth-web-ci.yml @@ -30,6 +30,6 @@ jobs: - name: Deploy to Azure uses: Azure/webapps-deploy@v1 - With: + with: publish-profile: ${{ secrets.AzureWebAppPublishProfile }} package: ./mercuryhealth-we From 19f270d9b7df329355b60d705740169525807a7c Mon Sep 17 00:00:00 2001 From: Simona Toader Date: Tue, 25 Aug 2020 15:16:58 +0200 Subject: [PATCH 6/9] Small fix --- ClientApp/src/views/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientApp/src/views/Home.vue b/ClientApp/src/views/Home.vue index a1f7700..125281f 100644 --- a/ClientApp/src/views/Home.vue +++ b/ClientApp/src/views/Home.vue @@ -7,7 +7,7 @@ -

Hello, world!

+

Hello!

Welcome to your new single-page application, built with:

  • From 9f5ebf16526a45fea3a35e68bb9dc38ca06f2088 Mon Sep 17 00:00:00 2001 From: Simona Toader Date: Tue, 25 Aug 2020 15:23:22 +0200 Subject: [PATCH 7/9] Modified page --- ClientApp/src/views/Home.vue | 47 +----------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/ClientApp/src/views/Home.vue b/ClientApp/src/views/Home.vue index 125281f..a54b902 100644 --- a/ClientApp/src/views/Home.vue +++ b/ClientApp/src/views/Home.vue @@ -8,52 +8,7 @@

    Hello!

    -

    Welcome to your new single-page application, built with:

    -
      -
    • - ASP.NET Core and - C# for cross-platform server-side API code
    • -
    • - Vue.js for client-side code
    • -
    • - Vue CLI for building, bundling and adding or removing vue plugins
    • -
    • - Webpack internally used by Vue CLI
    • -
    • - Vuetify for layout and styling
    • -
    - -

    To help you get started, we've also set up:

    -
      -
    • - Client-side navigation. For example, click Counter then Back to return here.
    • -
    • - Development server integration. In development mode, the development server from - vue-cli-service runs in the background automatically, so your client-side resources are dynamically built on - demand and the page refreshes when you modify any file.
    • -
    • - Efficient production builds. In production mode, development-time features are disabled, and the - webpack build tool produces minified static CSS and JavaScript files.
    • -
    - -

    Integrated Vue plugins:

    -
      -
    • - Vue.js - reactive, component-oriented view layer for modern web interfaces.
    • -
    • - Vuetify - a reusable semantic component framework for Vue.js.
    • -
    • - Class Component - ES201X/Typescript class decorator for Vue components.
    • -
    • - Property Decorator - property decorators for Vue components
    • -
    • - Router - official router for Vue.js 2
    • -
    • - Vuex - state management for Vue.js
    • -
    • - Register Service Worker - script for registering service - worker with hooks for common events to simplify PWA development.
    • -
    +

    Welcome to our single-page application.

    From 9bb40b88f39396e1081fc4f6fc253230fa4a3771 Mon Sep 17 00:00:00 2001 From: Simona Toader Date: Tue, 25 Aug 2020 16:47:27 +0200 Subject: [PATCH 8/9] Greetings --- ClientApp/src/views/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientApp/src/views/Home.vue b/ClientApp/src/views/Home.vue index a54b902..681ae53 100644 --- a/ClientApp/src/views/Home.vue +++ b/ClientApp/src/views/Home.vue @@ -7,7 +7,7 @@ -

    Hello!

    +

    Hello! Greetings from Denmark

    Welcome to our single-page application.

    From aaee81c00a24b6abac37cafd7b8475db2b07302c Mon Sep 17 00:00:00 2001 From: sitoader <62118837+sitoader@users.noreply.github.com> Date: Thu, 17 Nov 2022 08:02:58 +0100 Subject: [PATCH 9/9] Create codeql.yml --- .github/workflows/codeql.yml | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..9f9b411 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,74 @@ +# 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: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + schedule: + - cron: '30 3 * * 2' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'csharp', 'javascript' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # 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. + + # 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 + + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # â„šī¸ 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 the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"