mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Move into actions subdirectory to prepare for migration to github/codeql
This commit is contained in:
33
.github/workflows/publish.yml
vendored
33
.github/workflows/publish.yml
vendored
@@ -1,33 +0,0 @@
|
||||
name: Publish
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Fetch CodeQL
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh extension install github/gh-codeql
|
||||
gh codeql version
|
||||
printf "CODEQL_FETCHED_CODEQL_PATH=" >> "${GITHUB_ENV}"
|
||||
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_ENV}"
|
||||
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_PATH}"
|
||||
- name: Install Packs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh repo clone github/codeql
|
||||
codeql pack install "ql/lib"
|
||||
codeql pack install "ql/src"
|
||||
codeql pack install "ql/test"
|
||||
- name: Publish
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
||||
run: |
|
||||
codeql pack publish ql/lib
|
||||
codeql pack publish ql/src
|
||||
37
.github/workflows/test.yml
vendored
37
.github/workflows/test.yml
vendored
@@ -1,37 +0,0 @@
|
||||
name: Tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Fetch CodeQL
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh extension install github/gh-codeql
|
||||
gh codeql set-channel "nightly"
|
||||
gh codeql version
|
||||
printf "CODEQL_FETCHED_CODEQL_PATH=" >> "${GITHUB_ENV}"
|
||||
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_ENV}"
|
||||
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_PATH}"
|
||||
- name: Install Packs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh repo clone github/codeql
|
||||
codeql pack ci "ql/lib"
|
||||
codeql pack ci "ql/src"
|
||||
codeql pack ci "ql/test"
|
||||
- name: Run Tests
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
codeql test run --search-path "${{ github.workspace }}/extractor" ql/test
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,7 +0,0 @@
|
||||
.DS_Store
|
||||
**/*.testproj
|
||||
ql/lib/.codeql/
|
||||
ql/src/.codeql/
|
||||
ql/test/.codeql/
|
||||
db/
|
||||
.cache
|
||||
20
BUILD.bazel
20
BUILD.bazel
@@ -1,20 +0,0 @@
|
||||
load("//misc/bazel:pkg.bzl", "codeql_pack")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
[
|
||||
codeql_pack(
|
||||
name = "-".join(parts),
|
||||
srcs = [
|
||||
"//actions/extractor",
|
||||
],
|
||||
pack_prefix = "/".join(parts),
|
||||
)
|
||||
for parts in (
|
||||
[
|
||||
"experimental",
|
||||
"actions",
|
||||
],
|
||||
["actions"],
|
||||
)
|
||||
]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user