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

dropbox pull #10

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
fa4b8a6
Create django.yml
Melissa1181 Sep 21, 2024
28da098
Create python-publish.yml
Melissa1181 Sep 21, 2024
c7a5c30
Create generator-generic-ossf-slsa3-publish.yml
Melissa1181 Sep 21, 2024
2e79626
Create pylint.yml
Melissa1181 Sep 21, 2024
9a605d8
Create python-app.yml
Melissa1181 Sep 21, 2024
2977cb3
Create python-package.yml
Melissa1181 Sep 21, 2024
8757f62
Create aws.yml
Melissa1181 Sep 21, 2024
2fb5b35
Create azure-functions-app-python.yml
Melissa1181 Sep 21, 2024
f6318c4
Create azure-webapps-python.yml
Melissa1181 Sep 21, 2024
7130a22
Create google.yml
Melissa1181 Sep 21, 2024
bf5dbb1
Create terraform.yml
Melissa1181 Sep 21, 2024
4586b45
Create alibabacloud.yml
Melissa1181 Sep 21, 2024
56a9ec6
Create ibm.yml
Melissa1181 Sep 21, 2024
27f3edd
Create tencent.yml
Melissa1181 Sep 21, 2024
c1071c2
Create openshift.yml
Melissa1181 Sep 21, 2024
e3bd123
Create azure-webapps-node.yml
Melissa1181 Sep 21, 2024
e5daf57
Create azure-kubernetes-service-kustomize.yml
Melissa1181 Sep 21, 2024
384d04a
Create azure-kubernetes-service-kompose.yml
Melissa1181 Sep 21, 2024
340fb6c
Create azure-functions-app-container.yml
Melissa1181 Sep 21, 2024
b99a0e1
Create azure-functions-app-nodejs.yml
Melissa1181 Sep 21, 2024
75a69c4
Create google-cloudrun-source.yml
Melissa1181 Sep 21, 2024
2f5005a
Create azure-kubernetes-service.yml
Melissa1181 Sep 21, 2024
35adbf9
Create azure-functions-app-dotnet.yml
Melissa1181 Sep 21, 2024
5366e4f
Create azure-functions-app-powershell.yml
Melissa1181 Sep 21, 2024
2442cf2
Create azure-webapps-java-jar.yml
Melissa1181 Sep 21, 2024
d5f4d43
Create azure-container-webapp.yml
Melissa1181 Sep 21, 2024
90c3ea9
Create azure-staticwebapp.yml
Melissa1181 Sep 21, 2024
1b9849f
Create codeql.yml
Melissa1181 Sep 21, 2024
742eff7
Create dependency-review.yml
Melissa1181 Sep 21, 2024
be24ae0
Create apisec-scan.yml
Melissa1181 Sep 21, 2024
d203b99
Create bandit.yml
Melissa1181 Sep 21, 2024
883e299
Create checkmarx-one.yml
Melissa1181 Sep 21, 2024
6653ab9
Create checkmarx.yml
Melissa1181 Sep 21, 2024
6dc47dd
Create codacy.yml
Melissa1181 Sep 21, 2024
6eeccac
Create crda.yml
Melissa1181 Sep 21, 2024
bc7db12
Create debricked.yml
Melissa1181 Sep 21, 2024
bb906a1
Create defender-for-devops.yml
Melissa1181 Sep 21, 2024
147bcc0
Create devskim.yml
Melissa1181 Sep 21, 2024
88c36b5
Create endorlabs.yml
Melissa1181 Sep 21, 2024
19615af
Create ethicalcheck.yml
Melissa1181 Sep 21, 2024
7e45881
Create SECURITY.md
Melissa1181 Sep 21, 2024
584817e
Create fortify.yml
Melissa1181 Sep 21, 2024
1b18521
Create phpmd.yml
Melissa1181 Sep 21, 2024
2cec862
Create codescan.yml
Melissa1181 Sep 21, 2024
91dfa20
Create pmd.yml
Melissa1181 Sep 21, 2024
7e116f1
Create prisma.yml
Melissa1181 Sep 21, 2024
4d0bb6a
Create appknox.yml
Melissa1181 Sep 21, 2024
0bbd0bd
Create nowsecure-mobile-sbom.yml
Melissa1181 Sep 21, 2024
6b087e2
Create msvc.yml
Melissa1181 Sep 21, 2024
afa1223
Create xanitizer.yml
Melissa1181 Sep 21, 2024
1de85f2
Create datree.yml
Melissa1181 Sep 21, 2024
fe9c4c4
Create puppet-lint.yml
Melissa1181 Sep 21, 2024
6a56abb
Create policy-validator-tf.yml
Melissa1181 Sep 21, 2024
e6d120b
Create osv-scanner.yml
Melissa1181 Sep 21, 2024
ed803d8
Create crunch42.yml
Melissa1181 Sep 21, 2024
a327bd2
Create neuralegion.yml
Melissa1181 Sep 21, 2024
0965e9c
Create snyk-security.yml
Melissa1181 Sep 21, 2024
840e997
Create veracode.yml
Melissa1181 Sep 21, 2024
9c07364
Create python-package-conda.yml
Melissa1181 Sep 21, 2024
6ed3429
Create super-linter.yml
Melissa1181 Sep 21, 2024
e1c4978
Create scala.yml
Melissa1181 Sep 21, 2024
84706ed
Create gradle.yml
Melissa1181 Sep 21, 2024
16cdf35
Create npm-grunt.yml
Melissa1181 Sep 21, 2024
9a177f4
Create cmake-single-platform.yml
Melissa1181 Sep 21, 2024
9e5b62f
Create docker-publish.yml
Melissa1181 Sep 21, 2024
0735df1
Create ios.yml
Melissa1181 Sep 21, 2024
ac00f60
Create msbuild.yml
Melissa1181 Sep 21, 2024
e8f9ae2
Create clojure.yml
Melissa1181 Sep 21, 2024
28e0cd9
Create php.yml
Melissa1181 Sep 21, 2024
34613c1
Create label.yml
Melissa1181 Sep 21, 2024
8049710
Create greetings.yml
Melissa1181 Sep 21, 2024
0baaf0e
Create manual.yml
Melissa1181 Sep 21, 2024
93ee28e
Create stale.yml
Melissa1181 Sep 21, 2024
b89f44a
Create nextjs.yml
Melissa1181 Sep 21, 2024
f4ad061
Create static.yml
Melissa1181 Sep 21, 2024
6a2fde9
Create gatsby.yml
Melissa1181 Sep 21, 2024
a425c21
Create jekyll-gh-pages.yml
Melissa1181 Sep 21, 2024
92c1a61
Create jekyll.yml
Melissa1181 Sep 21, 2024
19145ec
Create hugo.yml
Melissa1181 Sep 21, 2024
2f82ff8
Create mdbook.yml
Melissa1181 Sep 21, 2024
46824da
Create astro.yml
Melissa1181 Sep 21, 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
122 changes: 122 additions & 0 deletions .github/workflows/alibabacloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# This workflow will build and push a new container image to Alibaba Cloud Container Registry (ACR),
# and then will deploy it to Alibaba Cloud Container Service for Kubernetes (ACK), when there is a push to the "main" branch.
#
# To use this workflow, you will need to complete the following set-up steps:
#
# 1. Create an ACR repository to store your container images.
# You can use ACR EE instance for more security and better performance.
# For instructions see https://www.alibabacloud.com/help/doc-detail/142168.htm
#
# 2. Create an ACK cluster to run your containerized application.
# You can use ACK Pro cluster for more security and better performance.
# For instructions see https://www.alibabacloud.com/help/doc-detail/95108.htm
#
# 3. Store your AccessKey pair in GitHub Actions secrets named `ACCESS_KEY_ID` and `ACCESS_KEY_SECRET`.
# For instructions on setting up secrets see: https://developer.github.com/actions/managing-workflows/storing-secrets/
#
# 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME.
#

name: Build and Deploy to ACK

on:
push:
branches: [ "main" ]

# Environment variables available to all jobs and steps in this workflow.
env:
REGION_ID: cn-hangzhou
REGISTRY: registry.cn-hangzhou.aliyuncs.com
NAMESPACE: namespace
IMAGE: repo
TAG: ${{ github.sha }}
ACK_CLUSTER_ID: clusterID
ACK_DEPLOYMENT_NAME: nginx-deployment

ACR_EE_REGISTRY: myregistry.cn-hangzhou.cr.aliyuncs.com
ACR_EE_INSTANCE_ID: instanceID
ACR_EE_NAMESPACE: namespace
ACR_EE_IMAGE: repo
ACR_EE_TAG: ${{ github.sha }}

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
environment: production

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

# 1.1 Login to ACR
- name: Login to ACR with the AccessKey pair
uses: aliyun/acr-login@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"

# 1.2 Build and push image to ACR
- name: Build and push image to ACR
run: |
docker build --tag "$REGISTRY/$NAMESPACE/$IMAGE:$TAG" .
docker push "$REGISTRY/$NAMESPACE/$IMAGE:$TAG"

# 1.3 Scan image in ACR
- name: Scan image in ACR
uses: aliyun/acr-scan@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
repository: "${{ env.NAMESPACE }}/${{ env.IMAGE }}"
tag: "${{ env.TAG }}"

# 2.1 (Optional) Login to ACR EE
- uses: actions/checkout@v4
- name: Login to ACR EE with the AccessKey pair
uses: aliyun/acr-login@v1
with:
login-server: "https://${{ env.ACR_EE_REGISTRY }}"
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
instance-id: "${{ env.ACR_EE_INSTANCE_ID }}"

# 2.2 (Optional) Build and push image ACR EE
- name: Build and push image to ACR EE
run: |
docker build -t "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" .
docker push "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG"
# 2.3 (Optional) Scan image in ACR EE
- name: Scan image in ACR EE
uses: aliyun/acr-scan@v1
with:
region-id: "${{ env.REGION_ID }}"
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
instance-id: "${{ env.ACR_EE_INSTANCE_ID }}"
repository: "${{ env.ACR_EE_NAMESPACE}}/${{ env.ACR_EE_IMAGE }}"
tag: "${{ env.ACR_EE_TAG }}"

# 3.1 Set ACK context
- name: Set K8s context
uses: aliyun/ack-set-context@v1
with:
access-key-id: "${{ secrets.ACCESS_KEY_ID }}"
access-key-secret: "${{ secrets.ACCESS_KEY_SECRET }}"
cluster-id: "${{ env.ACK_CLUSTER_ID }}"

# 3.2 Deploy the image to the ACK cluster
- name: Set up Kustomize
run: |-
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash /dev/stdin 3.8.6
- name: Deploy
run: |-
./kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$ACK_DEPLOYMENT_NAME
kubectl get services -o wide
71 changes: 71 additions & 0 deletions .github/workflows/apisec-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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.

# APIsec addresses the critical need to secure APIs before they reach production.
# APIsec provides the industry’s only automated and continuous API testing platform that uncovers security vulnerabilities and logic flaws in APIs.
# Clients rely on APIsec to evaluate every update and release, ensuring that no APIs go to production with vulnerabilities.

# How to Get Started with APIsec.ai
# 1. Schedule a demo at https://www.apisec.ai/request-a-demo .
#
# 2. Register your account at https://cloud.apisec.ai/#/signup .
#
# 3. Register your API . See the video (https://www.youtube.com/watch?v=MK3Xo9Dbvac) to get up and running with APIsec quickly.
#
# 4. Get GitHub Actions scan attributes from APIsec Project -> Configurations -> Integrations -> CI-CD -> GitHub Actions
#
# apisec-run-scan
#
# This action triggers the on-demand scans for projects registered in APIsec.
# If your GitHub account allows code scanning alerts, you can then upload the sarif file generated by this action to show the scan findings.
# Else you can view the scan results from the project home page in APIsec Platform.
# The link to view the scan results is also displayed on the console on successful completion of action.

# This is a starter workflow to help you get started with APIsec-Scan Actions

name: APIsec

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# Customize trigger events based on your DevSecOps processes.
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '44 8 * * 0'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


permissions:
contents: read

jobs:

Trigger_APIsec_scan:
permissions:
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: ubuntu-latest

steps:
- name: APIsec scan
uses: apisec-inc/apisec-run-scan@025432089674a28ba8fb55f8ab06c10215e772ea
with:
# The APIsec username with which the scans will be executed
apisec-username: ${{ secrets.apisec_username }}
# The Password of the APIsec user with which the scans will be executed
apisec-password: ${{ secrets.apisec_password}}
# The name of the project for security scan
apisec-project: "VAmPI"
# The name of the sarif format result file The file is written only if this property is provided.
sarif-result-file: "apisec-results.sarif"
- name: Import results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./apisec-results.sarif
54 changes: 54 additions & 0 deletions .github/workflows/appknox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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.
#
# Appknox: Leader in Mobile Application Security Testing Solutions <https://www.appknox.com/>
#
# To use this workflow, you must be an existing Appknox customer with GitHub Advanced Security (GHAS) enabled for your
# repository.
#
# If you *are not* an existing customer, click here to contact us for licensing and pricing details:
# <https://www.appknox.com/free-trial>.
#
# Instructions:
#
# 1. In your repository settings, navigate to 'Secrets' and click on 'New repository secret.' Name the
# secret APPKNOX_ACCESS_TOKEN and paste your appknox user token into the value field. If you don't have a appknox token
# or need to generate a new one for GitHub, visit the Appknox Platform, go to Account Settings->Developer Settings
# and create a token labeled GitHub
#
# 2. Refer to the detailed workflow below, make any required adjustments, and then save it to your repository. After the
# action executes, check the 'Security' tab for results

name: Appknox

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
appknox:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build the app
run: ./gradlew build # Update this to build your Android or iOS application

- name: Appknox GitHub action
uses: appknox/appknox-github-action@b7d2bfb2321d5544e97bffcba48557234ab953a4
with:
appknox_access_token: ${{ secrets.APPKNOX_ACCESS_TOKEN }}
file_path: app/build/outputs/apk/debug/app-debug.apk # Specify the path to your .ipa or .apk here
risk_threshold: MEDIUM # Update this to desired risk threshold [LOW, MEDIUM, HIGH, CRITICAL]
sarif: Enable

- name: Upload SARIF to GHAS
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: report.sarif
90 changes: 90 additions & 0 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Sample workflow for building and deploying an Astro site to GitHub Pages
#
# To get started with Astro see: https://docs.astro.build/en/getting-started/
#
name: Deploy Astro site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

env:
BUILD_PATH: "." # default value when not using subfolders
# BUILD_PATH: subfolder

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
run: |
${{ steps.detect-package-manager.outputs.runner }} astro build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
working-directory: ${{ env.BUILD_PATH }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.BUILD_PATH }}/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading