Skip to content

Commit

Permalink
🔒 Update config file(s) managedy by ghsec (#20)
Browse files Browse the repository at this point in the history
* Update SAST config

* Update Renovate config

* Update Close Stale PRs config

---------

Co-authored-by: moonpay-github-security[bot] <115715540+moonpay-github-security[bot]@users.noreply.github.com>
  • Loading branch information
moonpay-github-security[bot] authored Aug 21, 2023
1 parent 3aad040 commit 8e76399
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/workflows/close-stale-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ jobs:
- uses: actions/stale@v8
with:
stale-pr-message: This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
close-pr-message: This PR was closed because it has been inactive for 7 days.
days-before-stale: "60"
days-before-close: "7"
65 changes: 37 additions & 28 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,45 @@
# This is an automatically generated file, please do not edit!
# If you want to make any changes see: https://github.com/moonpay/ghsec

name: CodeQL
name: 'CodeQL'

on:
push:
branches:
- main
paths-ignore:
- test/**
- tests/**
- '**/*.test.ts'
- '**/*.md'
- '**/*.txt'
branches: [main]
pull_request:
branches:
- main
paths-ignore:
- test/**
- tests/**
- '**/*.test.ts'
- '**/*.md'
- '**/*.txt'
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: 45 2 * * 3

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
- cron: '0 9 * * 1'

jobs:
analyze:
if: ${{ github.actor != 'renovate[bot]' }}
uses: moonpay/ghsec/.github/workflows/codeql-analysis-shared.yml@v1.0.0
secrets: inherit
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

# 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)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ 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
# uses a compiled language

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
37 changes: 33 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
{
"description": "This is an automatically generated file, please do not edit! If you want to make any changes see: https://github.com/moonpay/ghsec",
"extends": [
"github\u003emoonpay/ghsec//config/shared/renovate/default"
]
"description" : "This is an automatically generated file, please do not edit!",
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["before 7am every weekday"],
"timezone": "Europe/London",
"extends": [
"config:recommended"
],
"labels": ["⬆️ Dependencies"],
"packageRules": [
{
"enabled": false,
"matchPackagePatterns": ["*"]
}
],
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/examples/**",
"**/__fixtures__/**"
],
"vulnerabilityAlerts": {
"enabled": true,
"reviewers": [
"team:product-security-team"
],
"labels": [
"🔒 Security"
],
"schedule": "at any time",
"rebaseWhen": "conflicted"
},
"osvVulnerabilityAlerts": true
}

0 comments on commit 8e76399

Please sign in to comment.