Merge branch 'main' into master
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Set to true to add reviewers to pull requests
|
||||||
|
addReviewers: true
|
||||||
|
|
||||||
|
# Set to true to add assignees to pull requests
|
||||||
|
addAssignees: false
|
||||||
|
|
||||||
|
# A list of reviewers to be added to pull requests (GitHub user name)
|
||||||
|
reviewers:
|
||||||
|
- phantsure
|
||||||
|
- anuragc617
|
||||||
|
- tiwarishub
|
||||||
|
- vsvipul
|
||||||
|
- bishal-pdmsft
|
||||||
|
|
||||||
|
# A number of reviewers added to the pull request
|
||||||
|
# Set 0 to add all the reviewers (default: 0)
|
||||||
|
numberOfReviewers: 1
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
# package ecosystems to update and where the package manifests are located.
|
||||||
|
# Please see the documentation for all configuration options:
|
||||||
|
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
@@ -26,6 +26,7 @@ It is not:
|
|||||||
- [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests").
|
- [ ] Should use sentence case for the names of workflows and steps (for example, "Run tests").
|
||||||
- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build").
|
- [ ] Should be named _only_ by the name of the language or platform (for example, "Go", not "Go CI" or "Go Build").
|
||||||
- [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification.
|
- [ ] Should include comments in the workflow for any parts that are not obvious or could use clarification.
|
||||||
|
- [ ] Should specify least priviledge [permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token) for `GITHUB_TOKEN` so that the workflow runs successfully.
|
||||||
|
|
||||||
**For _CI_ workflows, the workflow:**
|
**For _CI_ workflows, the workflow:**
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ It is not:
|
|||||||
|
|
||||||
**For _Code Scanning_ workflows, the workflow:**
|
**For _Code Scanning_ workflows, the workflow:**
|
||||||
|
|
||||||
- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/ci).
|
- [ ] Should be preserved under [the `code-scanning` directory](https://github.com/actions/starter-workflows/tree/main/code-scanning).
|
||||||
- [ ] Should include a matching `code-scanning/properties/*.properties.json` file (for example, [`code-scanning/properties/codeql.properties.json`](https://github.com/actions/starter-workflows/blob/main/code-scanning/properties/codeql.properties.json)), with properties set as follows:
|
- [ ] Should include a matching `code-scanning/properties/*.properties.json` file (for example, [`code-scanning/properties/codeql.properties.json`](https://github.com/actions/starter-workflows/blob/main/code-scanning/properties/codeql.properties.json)), with properties set as follows:
|
||||||
- [ ] `name`: Name of the Code Scanning integration.
|
- [ ] `name`: Name of the Code Scanning integration.
|
||||||
- [ ] `organization`: Name of the organization producing the Code Scanning integration.
|
- [ ] `organization`: Name of the organization producing the Code Scanning integration.
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
name: Issue assignment
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-assign:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 'Auto-assign issue'
|
||||||
|
uses: pozil/[email protected]
|
||||||
|
with:
|
||||||
|
assignees: phantsure,tiwarishub,anuragc617,vsvipul,bishal-pdmsft
|
||||||
|
numOfAssignee: 1
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
name: 'Auto Assign'
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, ready_for_review]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-reviews:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: kentaro-m/[email protected]
|
||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Close Issue
|
- name: Close Issue
|
||||||
uses: peter-evans/close-issue@v1
|
uses: peter-evans/close-issue@v2
|
||||||
if: contains(github.event.issue.labels.*.name, 'feature')
|
if: contains(github.event.issue.labels.*.name, 'feature')
|
||||||
with:
|
with:
|
||||||
comment: |
|
comment: |
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Close Issue
|
- name: Close Issue
|
||||||
uses: peter-evans/close-issue@v1
|
uses: peter-evans/close-issue@v2
|
||||||
if: contains(github.event.issue.labels.*.name, 'support')
|
if: contains(github.event.issue.labels.*.name, 'support')
|
||||||
with:
|
with:
|
||||||
comment: |
|
comment: |
|
||||||
|
|||||||
@@ -11,6 +11,6 @@ jobs:
|
|||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v3
|
- uses: actions/labeler@v4
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v5
|
||||||
with:
|
with:
|
||||||
stale-issue-message: 'This issue has become stale and will be closed automatically within a period of time. Sorry about that.'
|
stale-issue-message: 'This issue has become stale and will be closed automatically within a period of time. Sorry about that.'
|
||||||
stale-pr-message: 'This pull request has become stale and will be closed automatically within a period of time. Sorry about that.'
|
stale-pr-message: 'This pull request has become stale and will be closed automatically within a period of time. Sorry about that.'
|
||||||
|
|||||||
@@ -11,14 +11,16 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: |
|
- run: |
|
||||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||||
git config user.email "[email protected]"
|
git config user.email "[email protected]"
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: script/sync-ghes/package-lock.json
|
||||||
- name: Check starter workflows for GHES compat
|
- name: Check starter workflows for GHES compat
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
@@ -10,11 +10,13 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "12"
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: script/validate-data/package-lock.json
|
||||||
|
|
||||||
- name: Validate workflows
|
- name: Validate workflows
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
* @actions/starter-workflows
|
* @actions/starter-workflows
|
||||||
|
|
||||||
/code-scanning/ @actions/advanced-security-code-scanning
|
/code-scanning/ @actions/advanced-security-code-scanning @actions/starter-workflows
|
||||||
|
/pages/ @actions/pages @actions/starter-workflows
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: Greetings
|
name: Greetings
|
||||||
|
|
||||||
on: [pull_request, issues]
|
on: [pull_request_target, issues]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
greeting:
|
greeting:
|
||||||
@@ -12,5 +12,5 @@ jobs:
|
|||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-message: 'Message that will be displayed on users first issue'
|
issue-message: "Message that will be displayed on users' first issue"
|
||||||
pr-message: 'Message that will be displayed on users first pull request'
|
pr-message: "Message that will be displayed on users' first pull request"
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v2
|
- uses: actions/labeler@v4
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'Stale issue message'
|
stale-issue-message: 'Stale issue message'
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up GNAT toolchain
|
- name: Set up GNAT toolchain
|
||||||
run: >
|
run: >
|
||||||
|
|||||||
+3
-3
@@ -12,12 +12,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
|
|||||||
+3
-3
@@ -15,11 +15,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
- name: Build with Ant
|
- name: Build with Ant
|
||||||
run: ant -noinput -buildfile build.xml
|
run: ant -noinput -buildfile build.xml
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Runs a single command using the runners shell
|
# Runs a single command using the runners shell
|
||||||
- name: Run a one-line script
|
- name: Run a one-line script
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: configure
|
- name: configure
|
||||||
run: ./configure
|
run: ./configure
|
||||||
- name: make
|
- name: make
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: lein deps
|
run: lein deps
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
+3
-4
@@ -12,14 +12,13 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally
|
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||||
# well on Windows or Mac. You can convert this to a matrix build if you need
|
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||||
# cross-platform coverage.
|
|
||||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
|||||||
image: crystallang/crystal
|
image: crystallang/crystal
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: shards install
|
run: shards install
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
@@ -10,13 +10,16 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
|
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
|
||||||
|
|
||||||
- name: 'Build & Test'
|
- name: 'Build & Test'
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Note: This workflow uses the latest stable version of the Dart SDK.
|
# Note: This workflow uses the latest stable version of the Dart SDK.
|
||||||
# You can specify other versions if desired, see documentation here:
|
# You can specify other versions if desired, see documentation here:
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# This workflow will trigger Datadog Synthetic tests within your Datadog organisation
|
||||||
|
# For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# To get started:
|
||||||
|
|
||||||
|
# 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/.
|
||||||
|
# 2. Start using the action within your workflow
|
||||||
|
|
||||||
|
name: Run Datadog Synthetic tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Run Synthetic tests within your GitHub workflow.
|
||||||
|
# For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci
|
||||||
|
- name: Run Datadog Synthetic tests
|
||||||
|
uses: DataDog/synthetics-ci-github-action@2b56dc0cca9daa14ab69c0d1d6844296de8f941e
|
||||||
|
with:
|
||||||
|
api_key: ${{secrets.DD_API_KEY}}
|
||||||
|
app_key: ${{secrets.DD_APP_KEY}}
|
||||||
|
test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy
|
||||||
|
|
||||||
|
|
||||||
+5
-2
@@ -14,17 +14,20 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [$default-branch]
|
branches: [$default-branch]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup repo
|
- name: Setup repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
# uses: denoland/setup-deno@v1
|
# uses: denoland/setup-deno@v1
|
||||||
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e9833173669
|
uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
||||||
with:
|
with:
|
||||||
deno-version: v1.x
|
deno-version: v1.x
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -16,9 +16,9 @@ jobs:
|
|||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: [3.7, 3.8, 3.9]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
+1
-1
@@ -13,6 +13,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||||
|
|||||||
+32
-2
@@ -29,10 +29,26 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
# This is used to complete the identity challenge
|
||||||
|
# with sigstore/fulcio when running outside of PRs.
|
||||||
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Install the cosign tool except on PR
|
||||||
|
# https://github.com/sigstore/cosign-installer
|
||||||
|
- name: Install cosign
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: sigstore/cosign-installer@7e0881f8fe90b25e305bbf0309761e9314607e25
|
||||||
|
with:
|
||||||
|
cosign-release: 'v1.9.0'
|
||||||
|
|
||||||
|
|
||||||
|
# Workaround: https://github.com/docker/build-push-action/issues/461
|
||||||
|
- name: Setup Docker buildx
|
||||||
|
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
|
||||||
|
|
||||||
# Login against a Docker registry except on PR
|
# Login against a Docker registry except on PR
|
||||||
# https://github.com/docker/login-action
|
# https://github.com/docker/login-action
|
||||||
@@ -55,9 +71,23 @@ jobs:
|
|||||||
# Build and push Docker image with Buildx (don't push on PR)
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
# https://github.com/docker/build-push-action
|
# https://github.com/docker/build-push-action
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
id: build-and-push
|
||||||
|
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
# Sign the resulting Docker image digest except on PRs.
|
||||||
|
# This will only write to the public Rekor transparency log when the Docker
|
||||||
|
# repository is public to avoid leaking data. If you would like to publish
|
||||||
|
# transparency data even for private images, pass --force to cosign below.
|
||||||
|
# https://github.com/sigstore/cosign
|
||||||
|
- name: Sign the published Docker image
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
env:
|
||||||
|
COSIGN_EXPERIMENTAL: "true"
|
||||||
|
# This step uses the identity token to provision an ephemeral certificate
|
||||||
|
# against the sigstore community Fulcio instance.
|
||||||
|
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
|
||||||
|
|||||||
@@ -63,15 +63,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# Install the .NET Core workload
|
# Install the .NET Core workload
|
||||||
- name: Install .NET Core
|
- name: Install .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||||
- name: Setup MSBuild.exe
|
- name: Setup MSBuild.exe
|
||||||
@@ -105,11 +105,11 @@ jobs:
|
|||||||
|
|
||||||
# Remove the pfx
|
# Remove the pfx
|
||||||
- name: Remove the pfx
|
- name: Remove the pfx
|
||||||
run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate
|
run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
|
||||||
|
|
||||||
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: MSIX Package
|
name: MSIX Package
|
||||||
path: ${{ env.Wap_Project_Directory }}\AppPackages
|
path: ${{ env.Wap_Project_Directory }}\AppPackages
|
||||||
|
|||||||
+3
-3
@@ -12,11 +12,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.x
|
dotnet-version: 6.0.x
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
+34
-31
@@ -1,31 +1,34 @@
|
|||||||
name: Elixir CI
|
name: Elixir CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
jobs:
|
permissions:
|
||||||
build:
|
contents: read
|
||||||
|
|
||||||
name: Build and test
|
jobs:
|
||||||
runs-on: ubuntu-latest
|
build:
|
||||||
|
|
||||||
steps:
|
name: Build and test
|
||||||
- uses: actions/checkout@v2
|
runs-on: ubuntu-latest
|
||||||
- name: Set up Elixir
|
|
||||||
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
|
steps:
|
||||||
with:
|
- uses: actions/checkout@v3
|
||||||
elixir-version: '1.12.3' # Define the elixir version [required]
|
- name: Set up Elixir
|
||||||
otp-version: '24.1' # Define the OTP version [required]
|
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
|
||||||
- name: Restore dependencies cache
|
with:
|
||||||
uses: actions/cache@v2
|
elixir-version: '1.12.3' # Define the elixir version [required]
|
||||||
with:
|
otp-version: '24.1' # Define the OTP version [required]
|
||||||
path: deps
|
- name: Restore dependencies cache
|
||||||
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
uses: actions/cache@v3
|
||||||
restore-keys: ${{ runner.os }}-mix-
|
with:
|
||||||
- name: Install dependencies
|
path: deps
|
||||||
run: mix deps.get
|
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
||||||
- name: Run tests
|
restore-keys: ${{ runner.os }}-mix-
|
||||||
run: mix test
|
- name: Install dependencies
|
||||||
|
run: mix deps.get
|
||||||
|
- name: Run tests
|
||||||
|
run: mix test
|
||||||
|
|||||||
+4
-1
@@ -6,6 +6,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@ -16,7 +19,7 @@ jobs:
|
|||||||
image: erlang:22.0.7
|
image: erlang:22.0.7
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: rebar3 compile
|
run: rebar3 compile
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby 2.6
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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 lets you compile your Go project using a SLSA3 compliant builder.
|
||||||
|
# This workflow will generate a so-called "provenance" file describing the steps
|
||||||
|
# that were performed to generate the final binary.
|
||||||
|
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
|
||||||
|
# https://github.com/slsa-framework/slsa-github-generator.
|
||||||
|
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
|
||||||
|
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
|
||||||
|
|
||||||
|
name: SLSA Go releaser
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# ========================================================================================================================================
|
||||||
|
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
|
||||||
|
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
|
||||||
|
#=========================================================================================================================================
|
||||||
|
build:
|
||||||
|
permissions:
|
||||||
|
id-token: write # To sign.
|
||||||
|
contents: write # To upload release assets.
|
||||||
|
actions: read # To read workflow path.
|
||||||
|
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
|
||||||
|
with:
|
||||||
|
go-version: 1.17
|
||||||
|
# =============================================================================================================
|
||||||
|
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
|
||||||
|
# =============================================================================================================
|
||||||
|
|
||||||
@@ -11,12 +11,12 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.18
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|||||||
+13
-5
@@ -1,3 +1,7 @@
|
|||||||
|
# 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 will build a package using Gradle and then publish it to GitHub packages when a release is created
|
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
|
||||||
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
|
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
|
||||||
|
|
||||||
@@ -16,22 +20,26 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: gradle build
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
|
with:
|
||||||
|
arguments: build
|
||||||
|
|
||||||
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
|
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
|
||||||
# the publishing section of your build.gradle
|
# the publishing section of your build.gradle
|
||||||
- name: Publish to GitHub Packages
|
- name: Publish to GitHub Packages
|
||||||
run: gradle publish
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
|
with:
|
||||||
|
arguments: publish
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ github.actor }}
|
USERNAME: ${{ github.actor }}
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
+13
-7
@@ -1,3 +1,7 @@
|
|||||||
|
# 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 will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
@@ -9,20 +13,22 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
|
||||||
- name: Grant execute permission for gradlew
|
|
||||||
run: chmod +x gradlew
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
|
with:
|
||||||
|
arguments: build
|
||||||
|
|||||||
+5
-2
@@ -6,20 +6,23 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-haskell@v1
|
- uses: actions/setup-haskell@v1
|
||||||
with:
|
with:
|
||||||
ghc-version: '8.10.3'
|
ghc-version: '8.10.3'
|
||||||
cabal-version: '3.2'
|
cabal-version: '3.2'
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: cache-cabal
|
cache-name: cache-cabal
|
||||||
with:
|
with:
|
||||||
|
|||||||
+3
-3
@@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Set Default Scheme
|
- name: Set Default Scheme
|
||||||
run: |
|
run: |
|
||||||
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
platform: ${{ 'iOS Simulator' }}
|
platform: ${{ 'iOS Simulator' }}
|
||||||
run: |
|
run: |
|
||||||
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
||||||
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
|
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
|
||||||
if [ $scheme = default ]; then scheme=$(cat default); fi
|
if [ $scheme = default ]; then scheme=$(cat default); fi
|
||||||
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
||||||
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
platform: ${{ 'iOS Simulator' }}
|
platform: ${{ 'iOS Simulator' }}
|
||||||
run: |
|
run: |
|
||||||
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
||||||
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
|
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
|
||||||
if [ $scheme = default ]; then scheme=$(cat default); fi
|
if [ $scheme = default ]; then scheme=$(cat default); fi
|
||||||
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
||||||
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build the site in the jekyll/builder container
|
- name: Build the site in the jekyll/builder container
|
||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
|
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.0'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: configure
|
- name: configure
|
||||||
run: ./configure
|
run: ./configure
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -15,12 +15,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|||||||
+9
-2
@@ -1,6 +1,10 @@
|
|||||||
name: MSBuild
|
name: MSBuild
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Path to the solution file relative to the root of the project.
|
# Path to the solution file relative to the root of the project.
|
||||||
@@ -11,12 +15,15 @@ env:
|
|||||||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
BUILD_CONFIGURATION: Release
|
BUILD_CONFIGURATION: Release
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Add MSBuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/[email protected]
|
uses: microsoft/[email protected]
|
||||||
|
|||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||||
|
|
||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|||||||
+2
-2
@@ -15,10 +15,10 @@ jobs:
|
|||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -15,10 +15,10 @@ jobs:
|
|||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
||||||
|
|
||||||
|
name: Node.js Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm test
|
||||||
|
|
||||||
|
publish-gpr:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
registry-url: $registry-url(npm)
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
+6
-23
@@ -11,10 +11,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
@@ -22,29 +22,12 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||||
|
|
||||||
publish-gpr:
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
registry-url: $registry-url(npm)
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm publish
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Set Default Scheme
|
- name: Set Default Scheme
|
||||||
run: |
|
run: |
|
||||||
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
||||||
|
|||||||
+5
-2
@@ -6,20 +6,23 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Validate composer.json and composer.lock
|
- name: Validate composer.json and composer.lock
|
||||||
run: composer validate --strict
|
run: composer validate --strict
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "Datadog Synthetics",
|
||||||
|
"description": "Run Datadog Synthetic tests within your GitHub Actions workflow",
|
||||||
|
"creator": "Datadog",
|
||||||
|
"iconName": "datadog",
|
||||||
|
"categories": ["Continuous integration", "JavaScript", "TypeScript", "Testing"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "SLSA Go releaser",
|
||||||
|
"creator": "Open Source Security Foundation (OpenSSF)",
|
||||||
|
"description": "Compile your Go project using a SLSA3 compliant builder",
|
||||||
|
"iconName": "go-ossf-slsa3-publish",
|
||||||
|
"categories": ["Continuous integration", "Go"]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Publish Node.js Package to GitHub Packages",
|
||||||
|
"description": "Publishes a Node.js package to GitHub Packages.",
|
||||||
|
"iconName": "node-package-transparent",
|
||||||
|
"categories": ["Continuous integration", "JavaScript", "npm"]
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Publish Node.js Package",
|
"name": "Publish Node.js Package",
|
||||||
"description": "Publishes a Node.js package to npm and GitHub Packages.",
|
"description": "Publishes a Node.js package to npm.",
|
||||||
"iconName": "node-package-transparent",
|
"iconName": "node-package-transparent",
|
||||||
"categories": ["Continuous integration", "JavaScript", "npm"]
|
"categories": ["Continuous integration", "JavaScript", "npm"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Rails - Install Dependencies and Run Linters",
|
|
||||||
"description": "Install dependencies and run linters on Rails application",
|
|
||||||
"iconName": "ruby",
|
|
||||||
"categories": ["Continuous integration", "Ruby", "Rails"]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "Ruby on Rails",
|
||||||
|
"description": "Build, lint, and test a Rails application",
|
||||||
|
"iconName": "rails",
|
||||||
|
"categories": ["Continuous integration", "Ruby", "Rails"]
|
||||||
|
}
|
||||||
+3
-3
@@ -9,9 +9,9 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.8", "3.9", "3.10"]
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -20,4 +20,4 @@ jobs:
|
|||||||
pip install pylint
|
pip install pylint
|
||||||
- name: Analysing the code with pylint
|
- name: Analysing the code with pylint
|
||||||
run: |
|
run: |
|
||||||
pylint `ls -R|grep .py$|xargs`
|
pylint $(git ls-files '*.py')
|
||||||
|
|||||||
+5
-2
@@ -9,15 +9,18 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ jobs:
|
|||||||
max-parallel: 5
|
max-parallel: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: 3.10
|
python-version: 3.10
|
||||||
- name: Add conda to system path
|
- name: Add conda to system path
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ jobs:
|
|||||||
python-version: ["3.8", "3.9", "3.10"]
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -12,15 +12,18 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@@ -22,7 +25,7 @@ jobs:
|
|||||||
r-version: ['3.6.3', '4.1.1']
|
r-version: ['3.6.3', '4.1.1']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up R ${{ matrix.r-version }}
|
- name: Set up R ${{ matrix.r-version }}
|
||||||
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
|
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
|
||||||
with:
|
with:
|
||||||
|
|||||||
+5
-2
@@ -13,6 +13,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
||||||
@@ -22,12 +25,12 @@ jobs:
|
|||||||
ruby-version: ['2.6', '2.7', '3.0']
|
ruby-version: ['2.6', '2.7', '3.0']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
||||||
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
||||||
# uses: ruby/setup-ruby@v1
|
# uses: ruby/setup-ruby@v1
|
||||||
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby-version }}
|
ruby-version: ${{ matrix.ruby-version }}
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
# 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 will download a prebuilt Ruby version, install dependencies, and run linters
|
|
||||||
name: Rails - Install dependencies and run linters
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ $default-branch ]
|
|
||||||
jobs:
|
|
||||||
run-lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup Ruby and install gems
|
|
||||||
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
|
||||||
with:
|
|
||||||
bundler-cache: true
|
|
||||||
# Add or Replace any other security checks here
|
|
||||||
- name: Run security checks
|
|
||||||
run: |
|
|
||||||
bin/bundler-audit --update
|
|
||||||
bin/brakeman -q -w2
|
|
||||||
# Add or Replace any other Linters here
|
|
||||||
- name: Run linters
|
|
||||||
run: |
|
|
||||||
bin/rubocop --parallel
|
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
# 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 will install a prebuilt Ruby version, install dependencies, and
|
||||||
|
# run tests and linters.
|
||||||
|
name: "Ruby on Rails CI"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:11-alpine
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
env:
|
||||||
|
POSTGRES_DB: rails_test
|
||||||
|
POSTGRES_USER: rails
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
env:
|
||||||
|
RAILS_ENV: test
|
||||||
|
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
# Add or replace dependency steps here
|
||||||
|
- name: Install Ruby and gems
|
||||||
|
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
# Add or replace database setup steps here
|
||||||
|
- name: Set up database schema
|
||||||
|
run: bin/rails db:schema:load
|
||||||
|
# Add or replace test runners here
|
||||||
|
- name: Run tests
|
||||||
|
run: bin/rake
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Install Ruby and gems
|
||||||
|
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
# Add or replace any other lints here
|
||||||
|
- name: Security audit dependencies
|
||||||
|
run: bin/bundler-audit --update
|
||||||
|
- name: Security audit application code
|
||||||
|
run: bin/brakeman -q -w2
|
||||||
|
- name: Lint Ruby files
|
||||||
|
run: bin/rubocop --parallel
|
||||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
+7
-3
@@ -6,17 +6,21 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'temurin'
|
||||||
|
cache: 'sbt'
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: sbt test
|
run: sbt test
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: swift build -v
|
run: swift build -v
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
+5
-2
@@ -6,6 +6,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
symfony-tests:
|
symfony-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -16,12 +19,12 @@ jobs:
|
|||||||
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
|
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
|
||||||
with:
|
with:
|
||||||
php-version: '8.0'
|
php-version: '8.0'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Copy .env.test.local
|
- name: Copy .env.test.local
|
||||||
run: php -r "file_exists('.env.test.local') || copy('.env.test', '.env.test.local');"
|
run: php -r "file_exists('.env.test.local') || copy('.env.test', '.env.test.local');"
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
|
|||||||
+2
-2
@@ -15,10 +15,10 @@ jobs:
|
|||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# 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 checks out code, builds an image, performs a container image
|
||||||
|
# scan with Anchore's Syft tool, and uploads the results to the GitHub Dependency
|
||||||
|
# submission API.
|
||||||
|
|
||||||
|
# For more information on the Anchore sbom-action usage
|
||||||
|
# and parameters, see https://github.com/anchore/sbom-action. For more
|
||||||
|
# information about the Anchore SBOM tool, Syft, see
|
||||||
|
# https://github.com/anchore/syft
|
||||||
|
name: Anchore Syft SBOM scan
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Anchore-Build-Scan:
|
||||||
|
permissions:
|
||||||
|
contents: write # required to upload to the Dependency submission API
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
|
||||||
|
- name: Scan the image and upload dependency results
|
||||||
|
uses: anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
|
||||||
|
with:
|
||||||
|
image: "localbuild/testimage:latest"
|
||||||
|
artifact-name: image.spdx.json
|
||||||
|
dependency-snapshot: true
|
||||||
@@ -20,12 +20,19 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Anchore-Build-Scan:
|
Anchore-Build-Scan:
|
||||||
|
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: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
|
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
|
||||||
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
|
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
|
||||||
@@ -33,7 +40,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: "localbuild/testimage:latest"
|
image: "localbuild/testimage:latest"
|
||||||
acs-report-enable: true
|
acs-report-enable: true
|
||||||
|
fail-build: false
|
||||||
- name: Upload Anchore Scan Report
|
- name: Upload Anchore Scan Report
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
@@ -42,8 +42,14 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Trigger_APIsec_scan:
|
Trigger_APIsec_scan:
|
||||||
|
permissions:
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -59,6 +65,6 @@ jobs:
|
|||||||
# The name of the sarif format result file The file is written only if this property is provided.
|
# The name of the sarif format result file The file is written only if this property is provided.
|
||||||
sarif-result-file: "apisec-results.sarif"
|
sarif-result-file: "apisec-results.sarif"
|
||||||
- name: Import results
|
- name: Import results
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: ./apisec-results.sarif
|
sarif_file: ./apisec-results.sarif
|
||||||
|
|||||||
@@ -17,18 +17,24 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
brakeman-scan:
|
brakeman-scan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
name: Brakeman Scan
|
name: Brakeman Scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository to the GitHub Actions runner
|
# Checkout the repository to the GitHub Actions runner
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Customize the ruby version depending on your needs
|
# Customize the ruby version depending on your needs
|
||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
uses: ruby/setup-ruby@f20f1eae726df008313d2e0d78c5e602562a1bcf
|
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.7'
|
ruby-version: '2.7'
|
||||||
|
|
||||||
@@ -46,6 +52,6 @@ jobs:
|
|||||||
|
|
||||||
# Upload the SARIF file generated in the previous step
|
# Upload the SARIF file generated in the previous step
|
||||||
- name: Upload SARIF
|
- name: Upload SARIF
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: output.sarif.json
|
sarif_file: output.sarif.json
|
||||||
|
|||||||
@@ -17,28 +17,38 @@ on:
|
|||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
|
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
issues: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to github issues
|
||||||
|
pull-requests: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to PR
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps require - checkout code, run CxFlow Action, Upload SARIF report (optional)
|
# Steps require - checkout code, run CxFlow Action, Upload SARIF report (optional)
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
# Runs the Checkmarx Scan leveraging the latest version of CxFlow - REFER to Action README for list of inputs
|
# Runs the Checkmarx Scan leveraging the latest version of CxFlow - REFER to Action README for list of inputs
|
||||||
- name: Checkmarx CxFlow Action
|
- name: Checkmarx CxFlow Action
|
||||||
uses: checkmarx-ts/checkmarx-cxflow-github-action@04e6403dbbfee0fd3fb076e5791202c31c54fe6b
|
uses: checkmarx-ts/checkmarx-cxflow-github-action@49d8269b14ca87910ba003d47a31fa0c7a11f2fe
|
||||||
with:
|
with:
|
||||||
project: GithubActionTest
|
project: ${{ secrets.CHECKMARX_PROJECT }}
|
||||||
team: '\CxServer\SP\Checkmarx'
|
team: ${{ secrets.CHECKMARX_TEAMS }}
|
||||||
checkmarx_url: ${{ secrets.CHECKMARX_URL }}
|
checkmarx_url: ${{ secrets.CHECKMARX_URL }}
|
||||||
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
|
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
|
||||||
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
|
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
|
||||||
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
|
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
|
||||||
|
scanners: sast
|
||||||
|
params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }} --cx-flow.filter-severity --cx-flow.filter-category --checkmarx.disable-clubbing=true --repo-url=${{ github.event.repository.url }}
|
||||||
# Upload the Report for CodeQL/Security Alerts
|
# Upload the Report for CodeQL/Security Alerts
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: cx.sarif
|
sarif_file: cx.sarif
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
name: clj-holmes
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clj-holmes:
|
||||||
|
name: Run clj-holmes scanning
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Scan code
|
||||||
|
uses: clj-holmes/clj-holmes-action@200d2d03900917d7eb3c24fc691ab83579a87fcb
|
||||||
|
with:
|
||||||
|
# rules-repository: 'git://org/private-rules-repo#main'
|
||||||
|
output-type: 'sarif'
|
||||||
|
output-file: 'clj-holmes-results.sarif'
|
||||||
|
fail-on-result: 'false'
|
||||||
|
|
||||||
|
- name: Upload analysis results to GitHub Security tab
|
||||||
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
|
with:
|
||||||
|
sarif_file: ${{github.workspace}}/clj-holmes-results.sarif
|
||||||
|
wait-for-processing: true
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# 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.
|
||||||
|
# clj-watson scans dependencies in a clojure deps.edn
|
||||||
|
# seeking for vulnerable direct/transitive dependencies and
|
||||||
|
# build a report with all the information needed to help you
|
||||||
|
# understand how the vulnerability manifest in your software.
|
||||||
|
# More details at https://github.com/clj-holmes/clj-watson
|
||||||
|
|
||||||
|
name: clj-watson
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clj-holmes:
|
||||||
|
name: Run clj-watson scanning
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Dependency scan
|
||||||
|
uses: clj-holmes/clj-watson-action@39b8ed306f2c125860cf6e69b6939363689f998c
|
||||||
|
with:
|
||||||
|
clj-watson-sha: "65d928c"
|
||||||
|
clj-watson-tag: "v4.0.1"
|
||||||
|
database-strategy: github-advisory
|
||||||
|
aliases: clojure-lsp,test
|
||||||
|
deps-edn-path: deps.edn
|
||||||
|
suggest-fix: true
|
||||||
|
output-type: sarif
|
||||||
|
output-file: clj-watson-results.sarif
|
||||||
|
fail-on-result: false
|
||||||
|
|
||||||
|
- name: Upload analysis results to GitHub
|
||||||
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
|
with:
|
||||||
|
sarif_file: ${{github.workspace}}/clj-watson-results.sarif
|
||||||
|
wait-for-processing: true
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo
|
- name: Clone repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# For Terraform, Cloudrail requires the plan as input. So we generate it using
|
# For Terraform, Cloudrail requires the plan as input. So we generate it using
|
||||||
# the Terraform core binary.
|
# the Terraform core binary.
|
||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
cloud-account-id: # Leave this empty for Static Analaysis, or provide an account ID for Dynamic Analysis, see instructions in Cloudrail SaaS
|
cloud-account-id: # Leave this empty for Static Analaysis, or provide an account ID for Dynamic Analysis, see instructions in Cloudrail SaaS
|
||||||
|
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
# Remember that if issues are found, Cloudrail return non-zero exit code, so the if: always()
|
# Remember that if issues are found, Cloudrail return non-zero exit code, so the if: always()
|
||||||
# is needed to ensure the SARIF file is uploaded
|
# is needed to ensure the SARIF file is uploaded
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
@@ -22,14 +22,20 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codacy-security-scan:
|
codacy-security-scan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
name: Codacy Security Scan
|
name: Codacy Security Scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository to the GitHub Actions runner
|
# Checkout the repository to the GitHub Actions runner
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
|
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
|
||||||
- name: Run Codacy Analysis CLI
|
- name: Run Codacy Analysis CLI
|
||||||
@@ -49,6 +55,6 @@ jobs:
|
|||||||
|
|
||||||
# Upload the SARIF file generated in the previous step
|
# Upload the SARIF file generated in the previous step
|
||||||
- name: Upload SARIF results file
|
- name: Upload SARIF results file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
+15
-13
@@ -34,37 +34,39 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
language: [ $detected-codeql-languages ]
|
language: [ $detected-codeql-languages ]
|
||||||
# CodeQL supports [ $supported-codeql-languages ]
|
# CodeQL supports [ $supported-codeql-languages ]
|
||||||
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# 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.
|
# 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.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
|
||||||
|
# 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#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v1
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 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
|
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
||||||
# and modify them (or add more) to build your code if your project
|
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
||||||
# uses a compiled language
|
|
||||||
|
|
||||||
#- run: |
|
# - run: |
|
||||||
# make bootstrap
|
# echo "Run, Build Application using script"
|
||||||
# make release
|
# ./location_of_script_within_repo/buildscript.sh
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v2
|
||||||
|
|||||||
@@ -17,14 +17,20 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CodeScan:
|
CodeScan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Cache files
|
- name: Cache files
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.sonar
|
~/.sonar
|
||||||
@@ -37,6 +43,6 @@ jobs:
|
|||||||
organization: ${{ secrets.CODESCAN_ORGANIZATION_KEY }}
|
organization: ${{ secrets.CODESCAN_ORGANIZATION_KEY }}
|
||||||
projectKey: ${{ secrets.CODESCAN_PROJECT_KEY }}
|
projectKey: ${{ secrets.CODESCAN_PROJECT_KEY }}
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: codescan.sarif
|
sarif_file: codescan.sarif
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# 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 will initiate a Contrast Scan on your built artifact, and subsequently upload the results SARIF to Github.
|
||||||
|
# Because Contrast Scan is designed to run against your deployable artifact, you need to build an artifact that will be passed to the Contrast Scan Action.
|
||||||
|
# Contrast Scan currently supports Java, JavaScript and .NET artifacts.
|
||||||
|
# For more information about the Contrast Scan GitHub Action see here: https://github.com/Contrast-Security-OSS/contrastscan-action
|
||||||
|
|
||||||
|
# Pre-requisites:
|
||||||
|
# All Contrast related account secrets should be configured as GitHub secrets to be passed as inputs to the Contrast Scan Action.
|
||||||
|
# The required secrets are CONTRAST_API_KEY, CONTRAST_ORGANIZATION_ID and CONTRAST_AUTH_HEADER.
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
name: Scan analyze workflow
|
||||||
|
jobs:
|
||||||
|
build-and-scan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# check out project
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
# Since Contrast Scan is designed to run against your deployable artifact, the steps to build your artifact should go here.
|
||||||
|
# -name: Build Project
|
||||||
|
# ...
|
||||||
|
# Scan Artifact
|
||||||
|
- name: Contrast Scan Action
|
||||||
|
uses: Contrast-Security-OSS/contrastscan-action@7352a45d9678ec8a434cf061b07ffb51c1e351a1
|
||||||
|
with:
|
||||||
|
artifact: mypath/target/myartifact.jar # replace this path with the path to your built artifact
|
||||||
|
apiKey: ${{ secrets.CONTRAST_API_KEY }}
|
||||||
|
orgId: ${{ secrets.CONTRAST_ORGANIZATION_ID }}
|
||||||
|
authHeader: ${{ secrets.CONTRAST_AUTH_HEADER }}
|
||||||
|
#Upload the results to GitHub
|
||||||
|
- name: Upload SARIF file
|
||||||
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif # The file name must be 'results.sarif', as this is what the Github Action will output
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
# 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 performs a static analysis of your source code using
|
||||||
|
# Red Hat CodeReady Dependency Analytics.
|
||||||
|
|
||||||
|
# Scans are triggered:
|
||||||
|
# 1. On every push to default and protected branches
|
||||||
|
# 2. On every Pull Request targeting the default branch
|
||||||
|
# 3. On a weekly schedule
|
||||||
|
# 4. Manually, on demand, via the "workflow_dispatch" event
|
||||||
|
|
||||||
|
# 💁 The CRDA Starter workflow will:
|
||||||
|
# - Checkout your repository
|
||||||
|
# - Setup the required tool stack
|
||||||
|
# - Install the CRDA command line tool
|
||||||
|
# - Auto detect the manifest file and install the project's dependencies
|
||||||
|
# - Perform the security scan using CRDA
|
||||||
|
# - Upload the SARIF result to the GitHub Code Scanning which can be viewed under the security tab
|
||||||
|
# - Optionally upload the SARIF file as an artifact for the future reference
|
||||||
|
|
||||||
|
# ℹ️ Configure your repository and the workflow with the following steps:
|
||||||
|
# 1. Setup the tool stack based on the project's requirement.
|
||||||
|
# Refer to: https://github.com/redhat-actions/crda/#1-set-up-the-tool-stack
|
||||||
|
# 2. (Optional) CRDA action attempt to detect the language and install the
|
||||||
|
# required dependencies for your project. If your project doesn't aligns
|
||||||
|
# with the default dependency installation command mentioned here
|
||||||
|
# https://github.com/redhat-actions/crda/#3-installing-dependencies.
|
||||||
|
# Use the required inputs to setup the same
|
||||||
|
# 3. (Optional) CRDA action attempts to detect the manifest file if it is
|
||||||
|
# present in the root of the project and named as per the default mentioned
|
||||||
|
# here https://github.com/redhat-actions/crda/#3-installing-dependencies.
|
||||||
|
# If it deviates from the default, use the required inputs to setup the same
|
||||||
|
# 4. Setup Authentication - Create the CRDA_KEY or SNYK_TOKEN.
|
||||||
|
# Refer to: https://github.com/redhat-actions/crda/#4-set-up-authentication
|
||||||
|
# 5. (Optional) Upload SARIF file as an Artifact to download and view
|
||||||
|
# 6. Commit and push the workflow file to your default branch to trigger a workflow run.
|
||||||
|
|
||||||
|
# 👋 Visit our GitHub organization at https://github.com/redhat-actions/ to see our actions and provide feedback.
|
||||||
|
|
||||||
|
name: CRDA Scan
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# TODO: Customize trigger events based on your DevSecOps processes
|
||||||
|
#
|
||||||
|
# This workflow is made to run with OpenShift starter workflow
|
||||||
|
# https://github.com/actions/starter-workflows/blob/main/deployments/openshift.yml
|
||||||
|
# However, if you want to run this workflow as a standalone workflow, please
|
||||||
|
# uncomment the 'push' trigger below and configure it based on your requirements.
|
||||||
|
#
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
CRDA_KEY:
|
||||||
|
required: false
|
||||||
|
SNYK_TOKEN:
|
||||||
|
required: false
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# push:
|
||||||
|
# branches: [ $default-branch, $protected-branches ]
|
||||||
|
|
||||||
|
# pull_request_target is used to securely share secret to the PR's workflow run.
|
||||||
|
# For more info visit: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
||||||
|
pull_request_target:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
types: [ assigned, opened, synchronize, reopened, labeled, edited ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
crda-scan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for redhat-actions/crda to upload SARIF results
|
||||||
|
name: Scan project vulnerabilities with CRDA
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# *******************************************************************
|
||||||
|
# Required: Instructions to setup project
|
||||||
|
# 1. Setup Go, Java, Node.js or Python depending on your project type
|
||||||
|
# 2. Setup Actions are listed below, choose one from them:
|
||||||
|
# - Go: https://github.com/actions/setup-go
|
||||||
|
# - Java: https://github.com/actions/setup-java
|
||||||
|
# - Node.js: https://github.com/actions/setup-node
|
||||||
|
# - Python: https://github.com/actions/setup-python
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# - name: Setup Node
|
||||||
|
# uses: actions/setup-node@v2
|
||||||
|
# with:
|
||||||
|
# node-version: '14'
|
||||||
|
|
||||||
|
# https://github.com/redhat-actions/openshift-tools-installer/blob/main/README.md
|
||||||
|
- name: Install CRDA CLI
|
||||||
|
uses: redhat-actions/openshift-tools-installer@v1
|
||||||
|
with:
|
||||||
|
source: github
|
||||||
|
github_pat: ${{ github.token }}
|
||||||
|
# Choose the desired version of the CRDA CLI
|
||||||
|
crda: "latest"
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
# https://github.com/redhat-actions/crda/blob/main/README.md
|
||||||
|
#
|
||||||
|
# By default, CRDA will detect the manifest file and install the required dependencies
|
||||||
|
# using the standard command for the project type.
|
||||||
|
# If your project doesn't aligns with the defaults mentioned in this action, you will
|
||||||
|
# need to set few inputs that are described here:
|
||||||
|
# https://github.com/redhat-actions/crda/blob/main/README.md#3-installing-dependencies
|
||||||
|
# Visit https://github.com/redhat-actions/crda/#4-set-up-authentication to understand
|
||||||
|
# process to get a SNYK_TOKEN or a CRDA_KEY
|
||||||
|
- name: CRDA Scan
|
||||||
|
id: scan
|
||||||
|
uses: redhat-actions/crda@v1
|
||||||
|
with:
|
||||||
|
crda_key: ${{ secrets.CRDA_KEY }} # Either use crda_key or snyk_token
|
||||||
|
# snyk_token: ${{ secrets.SNYK_TOKEN }}
|
||||||
|
# upload_artifact: false # Set this to false to skip artifact upload
|
||||||
@@ -33,14 +33,20 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rest-api-static-security-testing:
|
rest-api-static-security-testing:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for 42Crunch/api-security-audit-action to upload results to Github Code Scanning
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 42Crunch REST API Static Security Testing
|
- name: 42Crunch REST API Static Security Testing
|
||||||
uses: 42Crunch/api-security-audit-action@96228d9c48873fe001354047d47fb62be42abeb1
|
uses: 42Crunch/api-security-audit-action@f3a4f4d44ca6f538fe84361373d7a2a374018fdd
|
||||||
with:
|
with:
|
||||||
# Please create free account at https://platform.42crunch.com/register
|
# Please create free account at https://platform.42crunch.com/register
|
||||||
# Follow these steps to configure API_TOKEN https://docs.42crunch.com/latest/content/tasks/integrate_github_actions.htm
|
# Follow these steps to configure API_TOKEN https://docs.42crunch.com/latest/content/tasks/integrate_github_actions.htm
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Dependency Review Action
|
||||||
|
#
|
||||||
|
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
|
||||||
|
#
|
||||||
|
# Source repository: https://github.com/actions/dependency-review-action
|
||||||
|
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
||||||
|
name: 'Dependency Review'
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependency-review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 'Checkout Repository'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: 'Dependency Review'
|
||||||
|
uses: actions/dependency-review-action@v2
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Gets the download URL associated with the $DETEKT_RELEASE_TAG
|
# Gets the download URL associated with the $DETEKT_RELEASE_TAG
|
||||||
- name: Get Detekt download URL
|
- name: Get Detekt download URL
|
||||||
@@ -111,7 +111,7 @@ jobs:
|
|||||||
)" > ${{ github.workspace }}/detekt.sarif.json
|
)" > ${{ github.workspace }}/detekt.sarif.json
|
||||||
|
|
||||||
# Uploads results to GitHub repository using the upload-sarif action
|
# Uploads results to GitHub repository using the upload-sarif action
|
||||||
- uses: github/codeql-action/upload-sarif@v1
|
- uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
# Path to SARIF file relative to the root of the repository
|
# Path to SARIF file relative to the root of the repository
|
||||||
sarif_file: ${{ github.workspace }}/detekt.sarif.json
|
sarif_file: ${{ github.workspace }}/detekt.sarif.json
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ jobs:
|
|||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run DevSkim scanner
|
- name: Run DevSkim scanner
|
||||||
uses: microsoft/DevSkim-Action@v1
|
uses: microsoft/DevSkim-Action@v1
|
||||||
|
|
||||||
- name: Upload DevSkim scan results to GitHub Security tab
|
- name: Upload DevSkim scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: devskim-results.sarif
|
sarif_file: devskim-results.sarif
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
# 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.
|
||||||
|
# ESLint is a tool for identifying and reporting on patterns
|
||||||
|
# found in ECMAScript/JavaScript code.
|
||||||
|
# More details at https://github.com/eslint/eslint
|
||||||
|
# and https://eslint.org
|
||||||
|
|
||||||
|
name: ESLint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
eslint:
|
||||||
|
name: Run eslint scanning
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install ESLint
|
||||||
|
run: |
|
||||||
|
npm install [email protected]
|
||||||
|
npm install @microsoft/[email protected]
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: npx eslint .
|
||||||
|
--config .eslintrc.js
|
||||||
|
--ext .js,.jsx,.ts,.tsx
|
||||||
|
--format @microsoft/eslint-formatter-sarif
|
||||||
|
--output-file eslint-results.sarif
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload analysis results to GitHub
|
||||||
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
|
with:
|
||||||
|
sarif_file: eslint-results.sarif
|
||||||
|
wait-for-processing: true
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: flawfinder_scan
|
- name: flawfinder_scan
|
||||||
uses: david-a-wheeler/flawfinder@8e4a779ad59dbfaee5da586aa9210853b701959c
|
uses: david-a-wheeler/flawfinder@8e4a779ad59dbfaee5da586aa9210853b701959c
|
||||||
@@ -33,6 +33,6 @@ jobs:
|
|||||||
output: 'flawfinder_results.sarif'
|
output: 'flawfinder_results.sarif'
|
||||||
|
|
||||||
- name: Upload analysis results to GitHub Security tab
|
- name: Upload analysis results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: ${{github.workspace}}/flawfinder_results.sarif
|
sarif_file: ${{github.workspace}}/flawfinder_results.sarif
|
||||||
@@ -39,14 +39,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Check out source code
|
# Check out source code
|
||||||
- name: Check Out Source Code
|
- name: Check Out Source Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Java is required to run the various Fortify utilities.
|
# Java is required to run the various Fortify utilities.
|
||||||
# When scanning a Java application, please use the appropriate Java version for building your application.
|
# When scanning a Java application, please use the appropriate Java version for building your application.
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 8
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
# Prepare source+dependencies for upload. The default example is for a Maven project that uses pom.xml.
|
# Prepare source+dependencies for upload. The default example is for a Maven project that uses pom.xml.
|
||||||
# TODO: Update PACKAGE_OPTS based on the ScanCentral Client documentation for your project's included tech stack(s). Helpful hints:
|
# TODO: Update PACKAGE_OPTS based on the ScanCentral Client documentation for your project's included tech stack(s). Helpful hints:
|
||||||
@@ -92,6 +93,6 @@ jobs:
|
|||||||
|
|
||||||
# Import Fortify on Demand results to GitHub Security Code Scanning
|
# Import Fortify on Demand results to GitHub Security Code Scanning
|
||||||
- name: Import Results
|
- name: Import Results
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: ./gh-fortify-sast.sarif
|
sarif_file: ./gh-fortify-sast.sarif
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
# 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.
|
||||||
|
# Frogbot Scan and Fix does the following:
|
||||||
|
# Automatically creates pull requests with fixes for vulnerable project dependencies.
|
||||||
|
# Uses JFrog Xray to scan the project.
|
||||||
|
# Read more about Frogbot here - https://github.com/jfrog/frogbot#frogbot
|
||||||
|
|
||||||
|
name: "Frogbot Scan and Fix"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
# The scanning and creation of pull requests with fixes are triggered by pushing code to one of the these branches.
|
||||||
|
# You can edit the list of branches you wish to open fix pull requests on.
|
||||||
|
- "main"
|
||||||
|
- "master"
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
jobs:
|
||||||
|
create-fix-pull-requests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Install prerequisites - uncomment the relevant one
|
||||||
|
|
||||||
|
# - uses: actions/setup-go@v3
|
||||||
|
# with:
|
||||||
|
# go-version: 1.17.x
|
||||||
|
|
||||||
|
# - uses: actions/setup-java@v3
|
||||||
|
# with:
|
||||||
|
# java-version: "11"
|
||||||
|
# distribution: "temurin"
|
||||||
|
|
||||||
|
# - uses: actions/setup-node@v3
|
||||||
|
# with:
|
||||||
|
# node-version: "16.x"
|
||||||
|
|
||||||
|
|
||||||
|
- uses: jfrog/frogbot@de3d42bf3a454ddf156632ae520a5ead49048416
|
||||||
|
env:
|
||||||
|
# [Mandatory]
|
||||||
|
# JFrog platform URL (This functionality requires version 3.29.0 or above of Xray)
|
||||||
|
JF_URL: ${{ secrets.FROGBOT_URL }}
|
||||||
|
|
||||||
|
# [Mandatory if JF_USER and JF_PASSWORD are not provided]
|
||||||
|
# JFrog access token with 'read' permissions on Xray service
|
||||||
|
JF_ACCESS_TOKEN: ${{ secrets.FROGBOT_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
# [Mandatory]
|
||||||
|
# The GitHub token automatically generated for the job
|
||||||
|
JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# [Mandatory if using npm]
|
||||||
|
# The command that installs the dependencies
|
||||||
|
# JF_INSTALL_DEPS_CMD: "npm i"
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# 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.
|
||||||
|
# Frogbot Scan Pull Request does the following:
|
||||||
|
# Automatically scans new pull requests for security vulnerabilities.
|
||||||
|
# Uses JFrog Xray to scan the project.
|
||||||
|
# Read more about Frogbot here - https://github.com/jfrog/frogbot#frogbot
|
||||||
|
|
||||||
|
name: "Frogbot Scan Pull Request"
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [ opened, synchronize ]
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: read
|
||||||
|
jobs:
|
||||||
|
scan-pull-request:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# A pull request needs to be approved, before Frogbot scans it. Any GitHub user who is associated with the
|
||||||
|
# "frogbot" GitHub environment can approve the pull request to be scanned.
|
||||||
|
environment: frogbot
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
# Install prerequisites - uncomment the relevant ones
|
||||||
|
|
||||||
|
# - uses: actions/setup-go@v3
|
||||||
|
# with:
|
||||||
|
# go-version: 1.17.x
|
||||||
|
|
||||||
|
# - uses: actions/setup-java@v3
|
||||||
|
# with:
|
||||||
|
# java-version: "11"
|
||||||
|
# distribution: "temurin"
|
||||||
|
|
||||||
|
# - uses: actions/setup-node@v3
|
||||||
|
# with:
|
||||||
|
# node-version: "16.x"
|
||||||
|
|
||||||
|
# The full template list with the required GitHub Actions can be found at https://github.com/jfrog/frogbot/tree/master/templates/github-actions/scan-pull-request
|
||||||
|
|
||||||
|
- uses: jfrog/frogbot@de3d42bf3a454ddf156632ae520a5ead49048416
|
||||||
|
env:
|
||||||
|
# [Mandatory]
|
||||||
|
# JFrog platform URL (This functionality requires version 3.29.0 or above of Xray)
|
||||||
|
JF_URL: ${{ secrets.JF_URL }}
|
||||||
|
|
||||||
|
# [Mandatory if JF_ACCESS_TOKEN is not provided]
|
||||||
|
# JFrog username with 'read' permissions for Xray. Must be provided with JF_PASSWORD
|
||||||
|
JF_USER: ${{ secrets.JF_USER }}
|
||||||
|
|
||||||
|
# [Mandatory if JF_ACCESS_TOKEN is not provided]
|
||||||
|
# JFrog password. Must be provided with JF_USER
|
||||||
|
JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
|
||||||
|
|
||||||
|
# [Mandatory]
|
||||||
|
# The GitHub token automatically generated for the job
|
||||||
|
JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# [Mandatory if JF_USER and JF_PASSWORD are not provided]
|
||||||
|
# JFrog access token with 'read' permissions on Xray service
|
||||||
|
# JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
# [Mandatory when using npm]
|
||||||
|
# The command that installs the dependencies
|
||||||
|
# JF_INSTALL_DEPS_CMD: "npm i"
|
||||||
|
|
||||||
|
# [Mandatory when using .NET]
|
||||||
|
# The command that installs the dependencies
|
||||||
|
# JF_INSTALL_DEPS_CMD: "dotnet restore"
|
||||||
|
|
||||||
|
# The full template list with full optional environment variables can be found at https://github.com/jfrog/frogbot/tree/master/templates/github-actions/scan-pull-request
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
# 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.
|
||||||
|
# hadoint is a Dockerfile linter written in Haskell
|
||||||
|
# that helps you build best practice Docker images.
|
||||||
|
# More details at https://github.com/hadolint/hadolint
|
||||||
|
|
||||||
|
name: Hadolint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
hadolint:
|
||||||
|
name: Run hadolint scanning
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Run hadolint
|
||||||
|
uses: hadolint/hadolint-action@f988afea3da57ee48710a9795b6bb677cc901183
|
||||||
|
with:
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
format: sarif
|
||||||
|
output-file: hadolint-results.sarif
|
||||||
|
no-fail: true
|
||||||
|
|
||||||
|
- name: Upload analysis results to GitHub
|
||||||
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
|
with:
|
||||||
|
sarif_file: hadolint-results.sarif
|
||||||
|
wait-for-processing: true
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run kubesec scanner
|
- name: Run kubesec scanner
|
||||||
uses: controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14
|
uses: controlplaneio/kubesec-action@43d0ddff5ffee89a6bb9f29b64cd865411137b14
|
||||||
@@ -36,6 +36,6 @@ jobs:
|
|||||||
exit-code: "0"
|
exit-code: "0"
|
||||||
|
|
||||||
- name: Upload Kubesec scan results to GitHub Security tab
|
- name: Upload Kubesec scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: kubesec-results.sarif
|
sarif_file: kubesec-results.sarif
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Run your API in the background. Ideally, the API would run in debug
|
# Run your API in the background. Ideally, the API would run in debug
|
||||||
# mode & send stacktraces back on "500 Internal Server Error" responses
|
# mode & send stacktraces back on "500 Internal Server Error" responses
|
||||||
@@ -61,6 +61,6 @@ jobs:
|
|||||||
sarif-report: mapi.sarif
|
sarif-report: mapi.sarif
|
||||||
|
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: mapi.sarif
|
sarif_file: mapi.sarif
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user