diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 00a4e3c2..c5e6a0c2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,7 +28,7 @@ jobs: # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'self-hosted' }} + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: # required for all workflows diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 54f3a021..7fed391b 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -22,7 +22,7 @@ on: jobs: eslint: name: Run eslint scanning - runs-on: self-hosted + runs-on: ubuntu-latest permissions: contents: read security-events: write diff --git a/.github/workflows/njsscan.yml b/.github/workflows/njsscan.yml index 80ec85a5..8f0ae7bc 100644 --- a/.github/workflows/njsscan.yml +++ b/.github/workflows/njsscan.yml @@ -27,7 +27,7 @@ jobs: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - runs-on: self-hosted + runs-on: ubuntu-latest name: njsscan code scanning steps: - name: Checkout the code diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 76c480f4..e3ffb415 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,7 @@ on: types: [created] jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest environment: npm steps: - name: Checkout diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 4db0d486..2796c762 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,20 +1,20 @@ name: Build on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened] + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] jobs: - sonarcloud: - name: SonarCloud - runs-on: self-hosted - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}