diff --git a/.github/workflows/codeql-autogenerated.yml b/.github/workflows/codeql-autogenerated.yml index 61e4923f77a..77ca0713542 100644 --- a/.github/workflows/codeql-autogenerated.yml +++ b/.github/workflows/codeql-autogenerated.yml @@ -29,6 +29,7 @@ jobs: # only required for workflows in private repositories actions: read contents: read + issues: write # Added for creating issues on failure strategy: fail-fast: false @@ -69,3 +70,11 @@ jobs: build-mode: ${{ matrix.build-mode }} - name: Perform CodeQL Analysis for autogenerated uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "CodeQL Advanced - autogenerated failed" + body: "The daily scheduled task CodeQL Advanced - autogenerated failed." + mention: "@googleapis/cloud-sdk-nodejs-team" diff --git a/.github/workflows/codeql-handwritten.yml b/.github/workflows/codeql-handwritten.yml index b4ed7227938..fad63230c4e 100644 --- a/.github/workflows/codeql-handwritten.yml +++ b/.github/workflows/codeql-handwritten.yml @@ -29,6 +29,7 @@ jobs: # only required for workflows in private repositories actions: read contents: read + issues: write # Added for creating issues on failure strategy: fail-fast: false @@ -69,3 +70,11 @@ jobs: build-mode: ${{ matrix.build-mode }} - name: Perform CodeQL Analysis for handwritten uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "CodeQL Advanced - handwritten failed" + body: "The daily scheduled task CodeQL Advanced - handwritten failed." + mention: "@googleapis/cloud-sdk-nodejs-team" diff --git a/.github/workflows/codeql-repo.yml b/.github/workflows/codeql-repo.yml index 9d88b8895ac..92270938b60 100644 --- a/.github/workflows/codeql-repo.yml +++ b/.github/workflows/codeql-repo.yml @@ -29,6 +29,7 @@ jobs: # only required for workflows in private repositories actions: read contents: read + issues: write # Added for creating issues on failure strategy: fail-fast: false @@ -70,3 +71,11 @@ jobs: - name: Perform CodeQL Analysis for repo meta uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "CodeQL Advanced - repo meta failed" + body: "The daily scheduled task CodeQL Advanced - repo meta failed." + mention: "@googleapis/cloud-sdk-nodejs-team" diff --git a/.github/workflows/discovery.yaml b/.github/workflows/discovery.yaml index 65ed637c58b..dacd210cd19 100644 --- a/.github/workflows/discovery.yaml +++ b/.github/workflows/discovery.yaml @@ -9,6 +9,9 @@ name: Update Discovery Generated Types jobs: sync: runs-on: ubuntu-latest + permissions: + contents: read + issues: write # Added for creating issues on failure steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 with: @@ -41,3 +44,10 @@ jobs: git_dir: '.' fork: true force: true + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "Update Discovery Generated Types failed" + body: "The weekly scheduled task to update Discovery Generated Types failed." + mention: "@googleapis/cloud-sdk-nodejs-team" # Can be updated to @googleapis/bigquery-team if preferred diff --git a/.github/workflows/response.yml b/.github/workflows/response.yml index 80298722a6a..da2135ce575 100644 --- a/.github/workflows/response.yml +++ b/.github/workflows/response.yml @@ -24,6 +24,13 @@ jobs: script: | const script = require('./.github/scripts/close-unresponsive.cjs') await script({github, context}) + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "Close unresponsive issues failed" + body: "The daily scheduled task to close unresponsive issues failed." + mention: "@googleapis/cloud-sdk-nodejs-team" remove_label: if: github.event_name == 'issue_comment' diff --git a/.github/workflows/update-api-list.yaml b/.github/workflows/update-api-list.yaml index 52095638468..d073bdb372b 100644 --- a/.github/workflows/update-api-list.yaml +++ b/.github/workflows/update-api-list.yaml @@ -9,6 +9,9 @@ on: jobs: update-api-list: runs-on: ubuntu-latest + permissions: + contents: read + issues: write # Added for creating issues on failure steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: @@ -33,3 +36,10 @@ jobs: message: 'docs: update the list of available APIs' branch: update-api-list git_dir: '.' + - name: Create issue on failure + if: ${{ failure() }} + uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main + with: + title: "Update API list failed" + body: "The daily scheduled task to update the API list failed." + mention: "@googleapis/cloud-sdk-nodejs-team"