From c185a0735998bd6452fce3475fd2f2c9a9f13cd1 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 05:09:45 +0700 Subject: [PATCH 1/2] Create ci_own.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/ci_own.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci_own.yml diff --git a/.github/workflows/ci_own.yml b/.github/workflows/ci_own.yml new file mode 100644 index 0000000000..746e72c280 --- /dev/null +++ b/.github/workflows/ci_own.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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@v4 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From c5c6d27143dc870a36b4a700366b1702c15071d2 Mon Sep 17 00:00:00 2001 From: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Date: Sat, 5 Jul 2025 05:12:48 +0700 Subject: [PATCH 2/2] Potential fix for code scanning alert no. 48: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --- .github/workflows/ci_own.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci_own.yml b/.github/workflows/ci_own.yml index 746e72c280..8015369b30 100644 --- a/.github/workflows/ci_own.yml +++ b/.github/workflows/ci_own.yml @@ -1,6 +1,8 @@ # This is a basic workflow to help you get started with Actions name: CI +permissions: + contents: read # Controls when the workflow will run on: