Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7da583b
Workflow to split the bundle into components
marcogario Sep 17, 2020
b4a8cfa
Add instructions
marcogario Sep 17, 2020
9ed519f
Update to the latest version of `@actions/github`.
chrisgavin Sep 18, 2020
4666a0e
Resolve violations of github/array-foreach lint
miqh Sep 20, 2020
1154bf6
Update split.yml
marcogario Sep 21, 2020
47eb668
Update split.yml
marcogario Sep 21, 2020
d265935
Update split.yml
marcogario Sep 21, 2020
a8a6297
Merge pull request #223 from miqh/fix/199
Sep 21, 2020
cc0eb45
Use `getOctokit(...)` when getting the GitHub API client.
chrisgavin Sep 21, 2020
bba73b6
Merge main into update-actions-github.
chrisgavin Sep 21, 2020
e67ba57
Merge pull request #221 from github/update-actions-github
chrisgavin Sep 21, 2020
590fdcd
Apply suggestions from code review
marcogario Sep 21, 2020
c36848d
Merge branch 'main' into split_bundle
marcogario Sep 21, 2020
427c79f
Merge pull request #216 from github/split_bundle
marcogario Sep 21, 2020
31c2eca
Fix retrying uploads by using Octokit retry plugin.
chrisgavin Sep 21, 2020
8d26f61
Merge branch 'main' into octokit-retry
chrisgavin Sep 22, 2020
367ad73
Merge pull request #226 from github/octokit-retry
chrisgavin Sep 22, 2020
41464b1
Allowing a cached version of the CodeQL bundle sometimes
Sep 22, 2020
3b90db9
Integration tests now both rely on pre-downloaded and latest codeql b…
Sep 22, 2020
2f4ca98
Reducing the number of new builds significantly while keeping coverage
Sep 23, 2020
481f3ce
Merge pull request #227 from github/cbraynor/cache-pinning
Sep 23, 2020
80b408e
Resolve violations of eslint-comments/no-use lint
miqh Sep 23, 2020
38363a1
Resolve violations of no-sparse-arrays lint
miqh Sep 23, 2020
d9f3933
Merge pull request #229 from miqh/fix/203
robertbrignull Sep 23, 2020
5d00d5b
Merge branch 'main' into fix/197
robertbrignull Sep 23, 2020
f2e557e
Merge pull request #228 from miqh/fix/197
robertbrignull Sep 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"eslint-comments/no-use": "off",
"func-style": "off",
"github/array-foreach": "off",
"github/no-then": "off",
"import/no-extraneous-dependencies": "off",
"no-shadow": "off",
"no-sparse-arrays": "off",
"no-throw-literal": "off",
"no-useless-escape": "off",
"sort-imports": "off"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
tools: [~, latest]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -56,6 +57,7 @@ jobs:
mv ../action/tests/multi-language-repo/{*,.github} .
- uses: ./../action/init
with:
tools: ${{ matrix.tools }}
languages: cpp,csharp,java,javascript,python
config-file: github/codeql-action/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
- name: Build code
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/split.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#
# Split the CodeQL Bundle into platform bundles
#
# Instructions:
# 1. Upload the new codeql-bundle (codeql-bundle.tar.gz) as an asset of the
# release (codeql-bundle-20200826)
# 2. Take note of the CLI Release used by the bundle (e.g., v2.2.5)
# 3. Manually launch this workflow file (via the Actions UI) specifying
# - The CLI Release (e.g., v2.2.5)
# - The release tag (e.g., codeql-bundle-20200826)
# 4. If everything succeeds you should see 3 new assets.
#

name: Split Bundle

on:
workflow_dispatch:
inputs:
cli-release:
description: 'CodeQL CLI Release (e.g., "v2.2.5")'
required: true
bundle-tag:
description: 'Tag of the bundle release (e.g., "codeql-bundle-20200826")'
required: true

jobs:
build:
runs-on: ubuntu-latest
env:
CLI_RELEASE: "${{ github.event.inputs.cli-release }}"
RELEASE_TAG: "${{ github.event.inputs.bundle-tag }}"

strategy:
fail-fast: false
matrix:
platform: ["linux64", "osx64", "win64"]

steps:
- name: Resolve Upload URL for the release
id: save_url
run: |
UPLOAD_URL=$(curl -sS \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_TAG}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" | jq .upload_url | sed s/\"//g)
echo ${UPLOAD_URL}
echo "::set-output name=upload_url::${UPLOAD_URL}"

- name: Download CodeQL CLI and Bundle
run: |
wget --no-verbose "https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/codeql-bundle.tar.gz"
wget --no-verbose "https://github.com/github/codeql-cli-binaries/releases/download/${CLI_RELEASE}/codeql-${{matrix.platform}}.zip"

- name: Create Platform Package
# Replace the codeql-binaries with the platform specific ones
run: |
gunzip codeql-bundle.tar.gz
tar -f codeql-bundle.tar --delete codeql
unzip -q codeql-${{matrix.platform}}.zip
tar -f codeql-bundle.tar --append codeql
gzip codeql-bundle.tar
mv codeql-bundle.tar.gz codeql-bundle-${{matrix.platform}}.tar.gz
du -sh codeql-bundle-${{matrix.platform}}.tar.gz

- name: Upload Platform Package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.save_url.outputs.upload_url }}
asset_path: ./codeql-bundle-${{matrix.platform}}.tar.gz
asset_name: codeql-bundle-${{matrix.platform}}.tar.gz
asset_content_type: application/tar+gzip
9 changes: 5 additions & 4 deletions lib/api-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/api-client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions lib/codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading