From 6875e7c771a0e0b4234929588fed63a1a891dcfc Mon Sep 17 00:00:00 2001 From: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com> Date: Thu, 22 Jun 2023 13:09:33 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20remove=20unnecessary=20?= =?UTF-8?q?steps=20in=20codeql=20analysis=20workflow=20(#1729)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 🤖 remove unnecessary steps in codeql analysis workflow ✅ Closes: ICU-9816 * refactor: 💡 undo strategy removal --- .github/workflows/codeql-analysis.yml | 18 ++---------------- .github/workflows/jira.yml | 2 +- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 39914f124..4f9ec6f8f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -7,7 +7,7 @@ name: "CodeQL" on: push: - branches: [main, release-v0.1.0] + branches: [main] pull_request: # The branches below must be a subset of the branches above branches: [main] @@ -27,19 +27,10 @@ jobs: language: ['javascript'] # Learn more... # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection - + steps: - name: Checkout repository uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -51,11 +42,6 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - # 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@9a866ed4524fc3422c3af1e446dab8efa3503411 # codeql-bundle-20230418 - # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index 648325dd0..6a17b0131 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -19,7 +19,7 @@ jobs: id: boundary-team-role run: | TEAM=boundary - ROLE="$(hub api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')" + ROLE="$(gh api orgs/hashicorp/teams/${TEAM}/memberships/${{ github.actor }} | jq -r '.role | select(.!=null)')" if [[ -n ${ROLE} ]]; then echo "Actor ${{ github.actor }} is a ${TEAM} team member, skipping ticket creation" else