Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilan Bhalla committed Feb 3, 2025
1 parent d59576e commit dd9e87c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/microsoft-codeql-pack-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ jobs:
# PATCH=$(echo "$CURRENT_VERSION" | cut -d. -f3)
# NEXT_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
# Extract dependencies from the existing qlpack.yml before deleting
DEPENDENCIES=$(yq '{ dependencies: .dependencies }' "$LANGUAGE/ql/src/qlpack.yml" 2>/dev/null | yq eval '.dependencies' -)
rm -f "$LANGUAGE/ql/src/qlpack.yml" "$LANGUAGE/ql/src/qlpack.lock"
# # Extract dependencies from the existing qlpack.yml before deleting
# DEPENDENCIES=$(yq '{ dependencies: .dependencies }' "$LANGUAGE/ql/src/qlpack.yml" 2>/dev/null | yq eval '.dependencies' -)
# rm -f "$LANGUAGE/ql/src/qlpack.yml" "$LANGUAGE/ql/src/qlpack.lock"
FIRST_VERSION="0.0.1"
# Create new qlpack.yml with modified content
cat <<EOF > "$LANGUAGE/ql/src/qlpack.yml"
name: microsoft/$LANGUAGE-queries
version: $FIRST_VERSION
extractor: $LANGUAGE
groups:
- $LANGUAGE
- queries
suites: microsoft-suites
defaultSuiteFile: microsoft-suites/sdl-required.qls
$DEPENDENCIES
EOF
# # Create new qlpack.yml with modified content
# cat <<EOF > "$LANGUAGE/ql/src/qlpack.yml"
# name: microsoft/$LANGUAGE-queries
# version: $FIRST_VERSION
# extractor: $LANGUAGE
# groups:
# - $LANGUAGE
# - queries
# suites: microsoft-suites
# defaultSuiteFile: microsoft-suites/sdl-required.qls
# $DEPENDENCIES
# EOF
echo "___________________________________________________________"
cat "$LANGUAGE/ql/src/qlpack.yml"
echo "___________________________________________________________"
gh codeql pack publish --dry-run "$LANGUAGE/ql/src"
# echo "___________________________________________________________"
# cat "$LANGUAGE/ql/src/qlpack.yml"
# echo "___________________________________________________________"
# gh codeql pack publish --dry-run "$LANGUAGE/ql/src"
env:
LANGUAGE: ${{ matrix.language }}
GITHUB_TOKEN: ${{ secrets.PACKAGE_PUBLISH }}
Expand Down

0 comments on commit dd9e87c

Please sign in to comment.