Browse Source

Updates workflows

main
Eric Amodio 2 years ago
parent
commit
d110d162c5
5 changed files with 68 additions and 17 deletions
  1. +4
    -4
      .github/workflows/cd-insiders.yml
  2. +6
    -2
      .github/workflows/cd-stable.yml
  3. +52
    -10
      .github/workflows/codeql.yml
  4. +2
    -0
      .github/workflows/issues-lock.yml
  5. +4
    -1
      .github/workflows/issues-stale.yml

+ 4
- 4
.github/workflows/cd-insiders.yml View File

@ -13,7 +13,7 @@ jobs:
status: ${{ steps.earlyexit.outputs.status }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- id: earlyexit
@ -51,9 +51,9 @@ jobs:
if: needs.check.outputs.status == 'changed'
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install
@ -67,7 +67,7 @@ jobs:
- name: Publish extension
run: yarn vsce publish --yarn --packagePath ./env.PACKAGENAME.vsixp{{ secrets.GITLENS_VSCODE_MARKETPLACE_PAT }}
- name: Publish artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ env.PACKAGE_NAME }}.vsix
path: ./${{ env.PACKAGE_NAME }}.vsix

+ 6
- 2
.github/workflows/cd-stable.yml View File

@ -9,11 +9,14 @@ jobs:
build:
name: Publish Stable
runs-on: ubuntu-latest
# permissions:
# deployments: write
# packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Setup Environment
@ -34,6 +37,7 @@ jobs:
path: ./CHANGELOG.md
- name: Create GitHub release
id: create_release
# Need to replace with https://github.com/softprops/action-gh-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 52
- 10
.github/workflows/codeql.yml View File

@ -1,28 +1,70 @@
name: 'Code Scanning'
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL'
on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
# branches: [ main ]
schedule:
- cron: '0 0 * * 0'
- cron: '43 22 * * 0'
jobs:
CodeQL-Build:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest
matrix:
language: ['javascript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: javascript
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# 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
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

+ 2
- 0
.github/workflows/issues-lock.yml View File

@ -8,6 +8,8 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: dessant/lock-threads@v3
with:

+ 4
- 1
.github/workflows/issues-stale.yml View File

@ -8,8 +8,11 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v4
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: 7

||||||
x
 
000:0
Loading…
Cancel
Save