mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 15:13:06 +08:00
ci: upgrade github actions
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
This commit is contained in:
parent
14fb4392b7
commit
43ee4ae897
3
.github/workflows/__check-action.yml
vendored
3
.github/workflows/__check-action.yml
vendored
@ -3,6 +3,9 @@ name: Internal - Tests for action
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-action-with-services:
|
test-action-with-services:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
3
.github/workflows/__check-dist.yml
vendored
3
.github/workflows/__check-dist.yml
vendored
@ -3,6 +3,9 @@ name: Internal - Checks for dist
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-dist:
|
check-dist:
|
||||||
name: Check dist
|
name: Check dist
|
||||||
|
|||||||
5
.github/workflows/__check-nodejs.yml
vendored
5
.github/workflows/__check-nodejs.yml
vendored
@ -3,6 +3,11 @@ name: Internal - Checks for nodejs
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-nodejs:
|
test-nodejs:
|
||||||
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@0.4.2
|
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@0.4.2
|
||||||
|
|||||||
9
.github/workflows/__shared-ci.yml
vendored
9
.github/workflows/__shared-ci.yml
vendored
@ -3,9 +3,16 @@ name: Common Continuous Integration tasks
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
statuses: write
|
||||||
|
security-events: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linter:
|
linter:
|
||||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@feat/linter-extra-env-input
|
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@0.13.0
|
||||||
with:
|
with:
|
||||||
linter-env: |
|
linter-env: |
|
||||||
FILTER_REGEX_EXCLUDE=dist/**/*
|
FILTER_REGEX_EXCLUDE=dist/**/*
|
||||||
|
|||||||
14
.github/workflows/greetings.yml
vendored
Normal file
14
.github/workflows/greetings.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: Greetings
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
pull_request_target:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
greetings:
|
||||||
|
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@0.13.0
|
||||||
13
.github/workflows/main-ci.yml
vendored
13
.github/workflows/main-ci.yml
vendored
@ -3,7 +3,14 @@ name: Internal - Main - Continuous Integration
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
tags: ['*']
|
tags: ["*"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
statuses: write
|
||||||
|
security-events: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -30,11 +37,11 @@ jobs:
|
|||||||
app-id: ${{ vars.CI_BOT_APP_ID }}
|
app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||||
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@main
|
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@0.13.0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ steps.generate-token.outputs.token }}
|
github-token: ${{ steps.generate-token.outputs.token }}
|
||||||
branch: docs/actions-workflows-documentation-update
|
branch: docs/actions-workflows-documentation-update
|
||||||
title: 'docs: update actions and workflows documentation'
|
title: "docs: update actions and workflows documentation"
|
||||||
body: Update actions and workflows documentation
|
body: Update actions and workflows documentation
|
||||||
commit-message: |
|
commit-message: |
|
||||||
docs: update actions and workflows documentation
|
docs: update actions and workflows documentation
|
||||||
|
|||||||
13
.github/workflows/need-fix-to-issue.yml
vendored
13
.github/workflows/need-fix-to-issue.yml
vendored
@ -6,18 +6,21 @@ on:
|
|||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
#checkov:skip=CKV_GHA_7: required
|
||||||
manual-commit-ref:
|
manual-commit-ref:
|
||||||
description: 'The SHA of the commit to get the diff for'
|
description: "The SHA of the commit to get the diff for"
|
||||||
required: true
|
required: true
|
||||||
manual-base-ref:
|
manual-base-ref:
|
||||||
description:
|
description: "By default, the commit entered above is compared to the one directly
|
||||||
'By default, the commit entered above is compared to the one directly
|
before it; to go back further, enter an earlier SHA here"
|
||||||
before it; to go back further, enter an earlier SHA here'
|
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@0.12.1
|
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@0.13.0
|
||||||
with:
|
with:
|
||||||
manual-commit-ref: ${{ inputs.manual-commit-ref }}
|
manual-commit-ref: ${{ inputs.manual-commit-ref }}
|
||||||
manual-base-ref: ${{ inputs.manual-base-ref }}
|
manual-base-ref: ${{ inputs.manual-base-ref }}
|
||||||
|
|||||||
7
.github/workflows/pull-request-ci.yml
vendored
7
.github/workflows/pull-request-ci.yml
vendored
@ -5,6 +5,13 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
statuses: write
|
||||||
|
security-events: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|||||||
7
.github/workflows/semantic-pull-request.yml
vendored
7
.github/workflows/semantic-pull-request.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 'Pull Request - Semantic Lint'
|
name: "Pull Request - Semantic Lint"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
@ -7,6 +7,9 @@ on:
|
|||||||
- edited
|
- edited
|
||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@0.12.1
|
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@0.13.0
|
||||||
|
|||||||
7
.github/workflows/stale.yml
vendored
7
.github/workflows/stale.yml
vendored
@ -2,8 +2,11 @@ name: Mark stale issues and pull requests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 1 * * *'
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@0.12.1
|
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@0.13.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user