diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 7918fccfb..000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,8 +0,0 @@ -* @snowflakedb/Client - -/transport.go @snowflakedb/pki-oversight @snowflakedb/Client -/crl.go @snowflakedb/pki-oversight @snowflakedb/Client -/ocsp.go @snowflakedb/pki-oversight @snowflakedb/Client - -# GitHub Advanced Security Secret Scanning config -/.github/secret_scanning.yml @snowflakedb/prodsec-security-manager-write \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 8e1ee27d1..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,26 +0,0 @@ -### Issue description -Tell us what should happen and what happens instead - -### Example code -```go -If possible, please enter some example code here to reproduce the issue. -``` - -### Error log -``` -If you have an error log, please paste it here. -``` -Add ``glog` option to your application to collect log files. - -### Configuration -*Driver version (or git SHA):* - -*Go version:* run `go version` in your console - -*Server version:* E.g. 1.90.1 -You may get the server version by running a query: -``` -SELECT CURRENT_VERSION(); -``` - -*Client OS:* E.g. Debian 8.1 (Jessie), Windows 10 diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md deleted file mode 100644 index 306921d95..000000000 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -name: Bug Report 🐞 -about: Something isn't working as expected? Here is the right place to report. -labels: bug ---- - - -:exclamation: If you need **urgent assistance** then [file a case with Snowflake Support](https://community.snowflake.com/s/article/How-To-Submit-a-Support-Case-in-Snowflake-Lodge). -Otherwise continue here. - - -Please answer these questions before submitting your issue. -In order to accurately debug the issue this information is required. Thanks! - -1. What version of GO driver are you using? - - -2. What operating system and processor architecture are you using? - - -3. What version of GO are you using? -run `go version` in your console - -4.Server version:* E.g. 1.90.1 -You may get the server version by running a query: -``` -SELECT CURRENT_VERSION(); -``` -5. What did you do? - - If possible, provide a recipe for reproducing the error. - A complete runnable program is good. - -6. What did you expect to see? - - What should have happened and what happened instead? - -7. Can you set logging to DEBUG and collect the logs? - - https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors - - Before sharing any information, please be sure to review the log and remove any sensitive - information. diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md deleted file mode 100644 index 2a5bd3647..000000000 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Feature Request 💡 -about: Suggest a new idea for the project. -labels: feature ---- - - -## What is the current behavior? - -## What is the desired behavior? - -## How would this improve `gosnowflake`? - -## References, Other Background - diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 297a5bd90..000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,8 +0,0 @@ -### Description - -SNOW-XXX Please explain the changes you made here. - -### Checklist -- [ ] Added proper logging (if possible) -- [ ] Created tests which fail without the change (if possible) -- [ ] Extended the README / documentation, if necessary diff --git a/.github/repo_meta.yaml b/.github/repo_meta.yaml deleted file mode 100644 index 76e324b8f..000000000 --- a/.github/repo_meta.yaml +++ /dev/null @@ -1,4 +0,0 @@ -point_of_contact: @snowflakedb/client -production: true -code_owners_file_present: false -jira_area: Developer Platform diff --git a/.github/secret_scanning.yml b/.github/secret_scanning.yml deleted file mode 100644 index e6ba02ad5..000000000 --- a/.github/secret_scanning.yml +++ /dev/null @@ -1,2 +0,0 @@ -paths-ignore: - - "**/test_data/**" diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml deleted file mode 100755 index 69596987b..000000000 --- a/.github/workflows/build-test.yml +++ /dev/null @@ -1,471 +0,0 @@ -name: Build and Test - -permissions: - contents: read - -on: - push: - branches: - - master - tags: - - v* - pull_request: - branches: - - master - - SNOW-* - schedule: - - cron: '7 3 * * *' - workflow_dispatch: - inputs: - goTestParams: - default: - description: 'Parameters passed to go test' - sequentialTests: - type: boolean - default: false - description: 'Run tests sequentially (no buffering, slower)' - -concurrency: - # older builds for the same pull request numer or branch should be cancelled - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - lint: - runs-on: ubuntu-latest - name: Check linter - steps: - - uses: actions/checkout@v4 - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: golangci-lint - uses: golangci/golangci-lint-action@v7 - with: - version: v2.4.0 - - name: Format, Lint - shell: bash - run: ./ci/build.sh - build-test-linux: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - cloud: [ 'AWS', 'AZURE', 'GCP' ] - go: [ '1.24', '1.25', '1.26' ] - name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Ubuntu - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go }} - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud }} - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - SEQUENTIAL_TESTS: ${{ inputs.sequentialTests }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - build-test-linux-no-home: - runs-on: ubuntu-latest - name: Ubuntu - no HOME - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - SEQUENTIAL_TESTS: ${{ inputs.sequentialTests }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - HOME_EMPTY: "yes" - run: ./ci/test.sh - build-test-mac: - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - cloud: [ 'AWS', 'AZURE', 'GCP' ] - go: [ '1.24', '1.25', '1.26' ] - name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Mac - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go }} - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud }} - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - build-test-mac-no-home: - runs-on: macos-latest - name: Mac - no HOME - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - HOME_EMPTY: "yes" - run: ./ci/test.sh - build-test-windows: - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - cloud: [ 'AWS', 'AZURE', 'GCP' ] - go: [ '1.24', '1.25', '1.26' ] - name: ${{ matrix.cloud }} Go ${{ matrix.go }} on Windows - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go }} - - uses: actions/setup-python@v5 - with: - python-version: '3.x' - architecture: 'x64' - - name: Test - shell: cmd - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud }} - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - SEQUENTIAL_TESTS: ${{ inputs.sequentialTests }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ci\\test.bat - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - fipsOnly: - runs-on: ubuntu-latest - strategy: - fail-fast: false - name: FIPS only mode - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go }} - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud }} - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - TEST_GODEBUG: fips140=only - SEQUENTIAL_TESTS: ${{ inputs.sequentialTests }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - build-test-linux-minicore-disabled: - runs-on: ubuntu-latest - name: Ubuntu - minicore disabled - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} -tags=minicore_disabled - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - build-test-mac-minicore-disabled: - runs-on: macos-latest - name: Mac - minicore disabled - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GO_TEST_PARAMS: ${{ inputs.goTestParams }} -tags=minicore_disabled - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - build-test-windows-minicore-disabled: - runs-on: windows-latest - name: Windows - minicore disabled - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - uses: actions/setup-python@v5 - with: - python-version: '3.x' - architecture: 'x64' - - name: Test - shell: cmd - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GO_TEST_PARAMS: ${{ inputs.goTestParams }} -tags=minicore_disabled - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ci\\test.bat - ecc: - runs-on: ubuntu-latest - strategy: - fail-fast: false - name: Elliptic curves check - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: '1.25' - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: AWS - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} -run TestQueryViaHttps - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - WIREMOCK_ENABLE_ECDSA: true - run: ./ci/test.sh - build-test-rockylinux9: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - cloud_go: - - cloud: 'AWS' - go: '1.24.2' - - cloud: 'AZURE' - go: '1.25.0' - - cloud: 'GCP' - go: '1.26.0' - name: ${{ matrix.cloud_go.cloud }} Go ${{ matrix.cloud_go.go }} on Rocky Linux 9 - steps: - - uses: actions/checkout@v4 - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud_go.cloud }} - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - SEQUENTIAL_TESTS: ${{ inputs.sequentialTests }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test_rockylinux9_docker.sh ${{ matrix.cloud_go.go }} - build-test-ubuntu-arm: - runs-on: ubuntu-24.04-arm - strategy: - fail-fast: false - matrix: - cloud_go: - - cloud: 'AWS' - go: '1.24' - - cloud: 'AZURE' - go: '1.25' - - cloud: 'GCP' - go: '1.26' - name: ${{ matrix.cloud_go.cloud }} Go ${{ matrix.cloud_go.go }} on Ubuntu ARM - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 17 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.cloud_go.go }} - - name: Test - shell: bash - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud_go.cloud }} - GORACE: history_size=7 - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ./ci/test.sh - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - build-test-windows-arm: - runs-on: windows-11-arm - strategy: - fail-fast: false - matrix: - cloud_go: - - cloud: 'AWS' - go: '1.24' - - cloud: 'AZURE' - go: '1.25' - - cloud: 'GCP' - go: '1.26' - name: ${{ matrix.cloud_go.cloud }} Go ${{ matrix.cloud_go.cloud }} on Windows ARM - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 # for wiremock - with: - java-version: 21 - distribution: 'temurin' - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.cloud_go.go }} - - uses: actions/setup-python@v5 - with: - python-version: '3.x' - architecture: 'x64' - - name: Test - shell: cmd - env: - PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} - GOLANG_PRIVATE_KEY_SECRET: ${{ secrets.GOLANG_PRIVATE_KEY_SECRET }} - CLOUD_PROVIDER: ${{ matrix.cloud_go.cloud }} - GO_TEST_PARAMS: ${{ inputs.goTestParams }} - WIREMOCK_PORT: 14335 - WIREMOCK_HTTPS_PORT: 13567 - run: ci\\test.bat - - name: Upload test results to Codecov - if: ${{!cancelled()}} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index 764966461..000000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Changelog Check - -on: - pull_request: - types: [opened, synchronize, labeled, unlabeled] - branches: - - master - -jobs: - check_change_log: - runs-on: ubuntu-latest - if: ${{!contains(github.event.pull_request.labels.*.name, 'NO-CHANGELOG-UPDATES')}} - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Ensure CHANGELOG.md is updated - run: git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -wq "CHANGELOG.md" diff --git a/.github/workflows/cla_bot.yml b/.github/workflows/cla_bot.yml deleted file mode 100644 index 7594a4cfa..000000000 --- a/.github/workflows/cla_bot.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: "CLA Assistant" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened,closed,synchronize] - -jobs: - CLAAssistant: - runs-on: ubuntu-latest - permissions: - actions: write - contents: write - pull-requests: write - statuses: write - steps: - - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action/@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOT_TOKEN }} - with: - path-to-signatures: 'signatures/version1.json' - path-to-document: 'https://github.com/snowflakedb/CLA/blob/main/README.md' - branch: 'main' - allowlist: 'dependabot[bot],github-actions,Jenkins User,_jenkins,sfc-gh-snyk-sca-sa,snyk-bot' - remote-organization-name: 'snowflake-eng' - remote-repository-name: 'cla-db' diff --git a/.github/workflows/jira_close.yml b/.github/workflows/jira_close.yml deleted file mode 100644 index 3ab438b56..000000000 --- a/.github/workflows/jira_close.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Jira closure - -on: - issues: - types: [closed, deleted] - -jobs: - close-issue: - runs-on: ubuntu-latest - steps: - - name: Extract issue from title - id: extract - env: - TITLE: "${{ github.event.issue.title }}" - run: | - jira=$(echo -n $TITLE | awk '{print $1}' | sed -e 's/://') - echo ::set-output name=jira::$jira - - - name: Close Jira Issue - if: startsWith(steps.extract.outputs.jira, 'SNOW-') - run: | - ISSUE_KEY="${{ steps.extract.outputs.jira }}" - JIRA_API_URL="${{ secrets.JIRA_BASE_URL }}/rest/api/2/issue/${ISSUE_KEY}/transitions" - - curl -X POST \ - --url "$JIRA_API_URL" \ - --user "${{ secrets.JIRA_USER_EMAIL }}:${{ secrets.JIRA_API_TOKEN }}" \ - --header "Content-Type: application/json" \ - --data "{ - \"update\": { - \"comment\": [ - { \"add\": { \"body\": \"Closed on GitHub\" } } - ] - }, - \"fields\": { - \"customfield_12860\": { \"id\": \"11506\" }, - \"customfield_10800\": { \"id\": \"-1\" }, - \"customfield_12500\": { \"id\": \"11302\" }, - \"customfield_12400\": { \"id\": \"-1\" }, - \"resolution\": { \"name\": \"Done\" } - }, - \"transition\": { \"id\": \"71\" } - }" diff --git a/.github/workflows/jira_comment.yml b/.github/workflows/jira_comment.yml deleted file mode 100644 index 11769c0a0..000000000 --- a/.github/workflows/jira_comment.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Jira comment - -on: - issue_comment: - types: [created] - -jobs: - comment-issue: - runs-on: ubuntu-latest - steps: - - name: Jira login - uses: atlassian/gajira-login@master - env: - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - - name: Extract issue from title - id: extract - env: - TITLE: "${{ github.event.issue.title }}" - run: | - jira=$(echo -n $TITLE | awk '{print $1}' | sed -e 's/://') - echo ::set-output name=jira::$jira - - name: Comment on issue - uses: atlassian/gajira-comment@master - if: startsWith(steps.extract.outputs.jira, 'SNOW-') && github.event.comment.user.login != 'codecov[bot]' - with: - issue: "${{ steps.extract.outputs.jira }}" - comment: "${{ github.event.comment.user.login }} commented:\n\n${{ github.event.comment.body }}\n\n${{ github.event.comment.html_url }}" diff --git a/.github/workflows/jira_issue.yml b/.github/workflows/jira_issue.yml deleted file mode 100644 index bc0b00e60..000000000 --- a/.github/workflows/jira_issue.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: Jira creation - -on: - issues: - types: [opened] - issue_comment: - types: [created] - -jobs: - create-issue: - runs-on: ubuntu-latest - permissions: - issues: write - if: ((github.event_name == 'issue_comment' && github.event.comment.body == 'recreate jira' && github.event.comment.user.login == 'sfc-gh-mkeller') || (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]')) - steps: - - name: Create JIRA Ticket - id: create - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ github.event.issue.body }} - ISSUE_URL: ${{ github.event.issue.html_url }} - run: | - # debug - #set -x - TMP_BODY=$(mktemp) - trap "rm -f $TMP_BODY" EXIT - - # Escape special characters in title and body - TITLE=$(echo "${ISSUE_TITLE//`/\\`}" | sed 's/"/\\"/g' | sed "s/'/\\\'/g") - echo "${ISSUE_BODY//`/\\`}" | sed 's/"/\\"/g' | sed "s/'/\\\'/g" > $TMP_BODY - echo -e "\n\n_Created from GitHub Action_ for $ISSUE_URL" >> $TMP_BODY - BODY=$(cat "$TMP_BODY") - - PAYLOAD=$(jq -n \ - --arg issuetitle "$TITLE" \ - --arg issuebody "$BODY" \ - '{ - fields: { - project: { key: "SNOW" }, - issuetype: { name: "Bug" }, - summary: $issuetitle, - description: $issuebody, - customfield_11401: { id: "14723" }, - assignee: { id: "712020:e527ae71-55cc-4e02-9217-1ca4ca8028a2" }, - components: [{ id: "19286" }], - labels: ["oss"], - priority: { id: "10001" } - } - }') - - # Create JIRA issue using REST API - RESPONSE=$(curl -s -X POST \ - -H "Content-Type: application/json" \ - -H "Accept: application/json" \ - -u "$JIRA_USER_EMAIL:$JIRA_API_TOKEN" \ - "$JIRA_BASE_URL/rest/api/2/issue" \ - -d "$PAYLOAD") - - # Extract JIRA issue key from response - JIRA_KEY=$(echo "$RESPONSE" | jq -r '.key') - - if [ "$JIRA_KEY" = "null" ] || [ -z "$JIRA_KEY" ]; then - echo "Failed to create JIRA issue" - echo "Response: $RESPONSE" - echo "Request payload: $PAYLOAD" - exit 1 - fi - - echo "Created JIRA issue: $JIRA_KEY" - echo "jira_key=$JIRA_KEY" >> $GITHUB_OUTPUT - - - name: Update GitHub Issue - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPOSITORY: ${{ github.repository }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - JIRA_KEY: ${{ steps.create.outputs.jira_key }} - ISSUE_TITLE: ${{ github.event.issue.title }} - run: | - TITLE=$(echo "${ISSUE_TITLE//`/\\`}" | sed 's/"/\\"/g' | sed "s/'/\\\'/g") - PAYLOAD=$(jq -n \ - --arg issuetitle "$TITLE" \ - --arg jirakey "$JIRA_KEY" \ - '{ - title: ($jirakey + ": " + $issuetitle) - }') - - # Update Github issue title with jira id - curl -s \ - -X PATCH \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/$REPOSITORY/issues/$ISSUE_NUMBER" \ - -d "$PAYLOAD" - - if [ "$?" != 0 ]; then - echo "Failed to update GH issue. Payload was:" - echo "$PAYLOAD" - exit 1 - fi diff --git a/.github/workflows/parameters/public/rsa_key_golang_aws.p8.gpg b/.github/workflows/parameters/public/rsa_key_golang_aws.p8.gpg deleted file mode 100644 index 7905396a6..000000000 Binary files a/.github/workflows/parameters/public/rsa_key_golang_aws.p8.gpg and /dev/null differ diff --git a/.github/workflows/parameters/public/rsa_key_golang_azure.p8.gpg b/.github/workflows/parameters/public/rsa_key_golang_azure.p8.gpg deleted file mode 100644 index 30bd72e2c..000000000 Binary files a/.github/workflows/parameters/public/rsa_key_golang_azure.p8.gpg and /dev/null differ diff --git a/.github/workflows/parameters/public/rsa_key_golang_gcp.p8.gpg b/.github/workflows/parameters/public/rsa_key_golang_gcp.p8.gpg deleted file mode 100644 index 00d9db196..000000000 Binary files a/.github/workflows/parameters/public/rsa_key_golang_gcp.p8.gpg and /dev/null differ diff --git a/.github/workflows/parameters_aws_auth_tests.json.gpg b/.github/workflows/parameters_aws_auth_tests.json.gpg deleted file mode 100644 index 840db5bfd..000000000 Binary files a/.github/workflows/parameters_aws_auth_tests.json.gpg and /dev/null differ diff --git a/.github/workflows/parameters_aws_golang.json.gpg b/.github/workflows/parameters_aws_golang.json.gpg deleted file mode 100644 index e0076d04b..000000000 Binary files a/.github/workflows/parameters_aws_golang.json.gpg and /dev/null differ diff --git a/.github/workflows/parameters_azure_golang.json.gpg b/.github/workflows/parameters_azure_golang.json.gpg deleted file mode 100644 index ad14e8f30..000000000 Binary files a/.github/workflows/parameters_azure_golang.json.gpg and /dev/null differ diff --git a/.github/workflows/parameters_gcp_golang.json.gpg b/.github/workflows/parameters_gcp_golang.json.gpg deleted file mode 100644 index ec970aca5..000000000 Binary files a/.github/workflows/parameters_gcp_golang.json.gpg and /dev/null differ diff --git a/.github/workflows/rsa-2048-private-key.p8.gpg b/.github/workflows/rsa-2048-private-key.p8.gpg deleted file mode 100644 index bf44267a5..000000000 Binary files a/.github/workflows/rsa-2048-private-key.p8.gpg and /dev/null differ diff --git a/.github/workflows/rsa_keys/rsa_key.p8.gpg b/.github/workflows/rsa_keys/rsa_key.p8.gpg deleted file mode 100644 index e90253cd3..000000000 Binary files a/.github/workflows/rsa_keys/rsa_key.p8.gpg and /dev/null differ diff --git a/.github/workflows/rsa_keys/rsa_key_invalid.p8.gpg b/.github/workflows/rsa_keys/rsa_key_invalid.p8.gpg deleted file mode 100644 index 3d2442a7c..000000000 Binary files a/.github/workflows/rsa_keys/rsa_key_invalid.p8.gpg and /dev/null differ diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml deleted file mode 100644 index 60ba1fec4..000000000 --- a/.github/workflows/semgrep.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Run semgrep checks - -on: - pull_request: - branches: [main, master] - -permissions: - contents: read - -jobs: - run-semgrep-reusable-workflow: - uses: snowflakedb/reusable-workflows/.github/workflows/semgrep-v2.yml@main - secrets: - token: ${{ secrets.SEMGREP_APP_TOKEN }}