Skip to content

Fix CodeQL analysis #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6c5ebac
feat: directlink - dedicated vlan mapping
sridhargk Mar 9, 2024
68cfc22
fix: udating dependency versions (#95)
jkalandaibm Mar 8, 2024
2e0df29
feat: directlink provider updated to latest spec
sridhargk Mar 12, 2024
c56aed5
feat: direct link changes build release
sridhargk Mar 14, 2024
8e4bbc4
Update version 0.24.0 -> 0.25.0
semantic-release-bot Mar 14, 2024
0914e13
chore(release): 0.25.0 release notes
semantic-release-bot Mar 14, 2024
57bbc34
chore(deps): bump tar and npm (#100)
dependabot[bot] Apr 23, 2024
c14a3aa
fix: updating versions
jkalandaibm Jun 5, 2024
e9e2021
fix: more tweaks
jkalandaibm Jun 5, 2024
262df88
fix: more tweaks
jkalandaibm Jun 5, 2024
affa5f1
fix: temp PR
jkalandaibm Jun 5, 2024
e1cc535
fix: temp PR
jkalandaibm Jun 5, 2024
a474fc2
fix: temp PR
jkalandaibm Jun 5, 2024
aa2477c
fix: temp PR
jkalandaibm Jun 5, 2024
b07f645
fix: temp PR
jkalandaibm Jun 5, 2024
097bc46
fix: temp PR
jkalandaibm Jun 5, 2024
73cea3a
fix: temp PR
jkalandaibm Jun 5, 2024
dd8ad73
fix: temp PR
jkalandaibm Jun 5, 2024
f5ddc9c
fix: updating CodeQL Analyzer
jkalandaibm Jun 11, 2024
9565887
fix: updating CodeQL Analyzer
jkalandaibm Jun 11, 2024
ceb77b2
fix: updating CodeQL Analyzer
jkalandaibm Jun 11, 2024
7c48785
fix: updating CodeQL Analyzer
jkalandaibm Jun 11, 2024
4ce98d9
fix: minor tweak
jkalandaibm Jun 11, 2024
7a71221
Create codeql.yml - new (#103)
jkalandaibm May 1, 2024
e57bd1e
Update codeql-analysis.yml
jkalandaibm Jun 11, 2024
fbab944
fix: minor tweak
jkalandaibm Jun 11, 2024
6314f7d
fix: another minor tweak
jkalandaibm Jun 12, 2024
0c22425
fix: more tweaks
jkalandaibm Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.24.0
current_version = 0.25.0
commit = True
message = Update version {current_version} -> {new_version}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# 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
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
92 changes: 92 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# 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: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '39 19 * * 4'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# 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.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ notifications:

matrix:
include:
- python: 3.7
- python: 3.9
before_script:
- >-
[ -z "${TRAVIS_TAG}" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
Expand All @@ -19,10 +19,11 @@ matrix:
&& openssl aes-256-cbc -K $encrypted_fc092b9428d6_key -iv $encrypted_fc092b9428d6_iv -in cis.env.enc -out cis.env -d || true
&& openssl aes-256-cbc -K $encrypted_89a9eb4f9417_key -iv $encrypted_89a9eb4f9417_iv -in dns.env.enc -out dns.env -d || true
- python: 3.8
- python: 3.9
- python: 3.10
- python: 3.11

before_install:
- curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install pandoc
- pip install pypandoc
Expand All @@ -34,7 +35,7 @@ install:
script: tox

before_deploy:
- nvm install 18
- nvm install 20
- npm install npm@latest -g
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
Expand All @@ -47,7 +48,7 @@ deploy:
script: npx semantic-release
skip_cleanup: true
on:
python: '3.7'
python: '3.9'
branch: master
- provider: pypi
setuptools_version: "60.8.2"
Expand All @@ -56,5 +57,5 @@ deploy:
repository: https://upload.pypi.org/legacy
skip_cleanup: true
on:
python: '3.7'
python: '3.9'
tags: true
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# [0.25.0](https://github.com/IBM/networking-python-sdk/compare/v0.24.0...v0.25.0) (2024-03-14)


### Bug Fixes

* udating dependency versions ([#95](https://github.com/IBM/networking-python-sdk/issues/95)) ([9cfd59b](https://github.com/IBM/networking-python-sdk/commit/9cfd59b99e7b3896fdd3df72597de19c77fc12ee))


### Features

* direct link changes build release ([2ed3b18](https://github.com/IBM/networking-python-sdk/commit/2ed3b1893701da168ac54a9f2ec49549c44752d7))
* directlink - dedicated vlan mapping ([1cb591a](https://github.com/IBM/networking-python-sdk/commit/1cb591a5ba79a3fb03dfceb3926ac476e29491a7))
* directlink provider updated to latest spec ([0bd2ad1](https://github.com/IBM/networking-python-sdk/commit/0bd2ad1a99b74021ffd6281f7f8047821cea5e95))
* Updating the list of reserved ASN numbers ([#92](https://github.com/IBM/networking-python-sdk/issues/92)) ([b5ca185](https://github.com/IBM/networking-python-sdk/commit/b5ca185a4a2faa7dc692a7992ad3d2ad85e9808b))

# [0.24.0](https://github.com/IBM/networking-python-sdk/compare/v0.23.2...v0.24.0) (2023-09-12)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# IBM Cloud Networking Services Python SDK Version 0.24.0
# IBM Cloud Networking Services Python SDK Version 0.25.0

Python client library to interact with various [IBM Cloud Networking Service APIs](https://cloud.ibm.com/apidocs?category=network).

Expand Down Expand Up @@ -99,13 +99,13 @@ IBM Cloud services:
To install, use `pip` or `easy_install`:

```bash
pip install --upgrade "ibm-cloud-networking-services==0.24.0"
pip install --upgrade "ibm-cloud-networking-services==0.25.0"
```

or

```bash
easy_install --upgrade "ibm-cloud-networking-servies==0.24.0"
easy_install --upgrade "ibm-cloud-networking-servies==0.25.0"
```

## Using the SDK
Expand Down
5 changes: 5 additions & 0 deletions dl.env.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ export DL_SERVICES_APIKEY="<IAM-API-KEY>"
export DL_SERVICES_LOCATION_NAME=dal09
export DL_SERVICES_LOCATION_LONG_NAME='Dallas 09'
export DL_SERVICES_SERVICE_URL=https://directlink.test.cloud.ibm.com/v1
export DL_PROVIDER_SERVICES_URL_V2=https://directlink.test.cloud.ibm.com/provider/v2
export DL_PROVIDER_SERVICES_APIKEY="<IAM-API-KEY>"
export DL_PROVIDER_SERVICES_CUSTOMER_ACCT_ID="<UUID>"
export DL_SERVICES_IAM_URL=https://iam.test.cloud.ibm.com/identity/token
export DL_SERVICES_GW_NAME=SDK-PY-DL-gateway
export DL_PROVIDER_SERVICES_GW_NAME=SDK-PVDR-PY-DL-gw
export DL_PROVIDER_SERVICES_UPDATED_GW_NAME=SDK-PVDR-PY-DL-gw-updated
export DL_SERVICES_CONN_NAME=SDK-PY-DL-vc
export DL_SERVICES_AUTHENTICATION_KEY=crn:v1:public:is:us-south:a/3b1bd7fa2bc3406ea70ba4ade8aa3f1b::vpc:r134-1680db5a-7672-41af-89fb-bbbc94ac6964
Loading