Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c9a4acb7f | |||
| f4e8472cb3 |
@@ -1,3 +1,2 @@
|
|||||||
self-hosted-runner:
|
self-hosted-runner:
|
||||||
labels:
|
labels: []
|
||||||
- runners-privilegedescalation
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
health-check:
|
health-check:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-detection-logic:
|
test-detection-logic:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
run: bash scripts/test-detect-pipeline.sh
|
run: bash scripts/test-detect-pipeline.sh
|
||||||
|
|
||||||
detect-pipeline:
|
detect-pipeline:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
outputs:
|
outputs:
|
||||||
pipeline-type: ${{ steps.detect.outputs.pipeline-type }}
|
pipeline-type: ${{ steps.detect.outputs.pipeline-type }}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-secrets:
|
check-secrets:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
ready: ${{ steps.check.outputs.ready }}
|
ready: ${{ steps.check.outputs.ready }}
|
||||||
steps:
|
steps:
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
check-token-permissions:
|
check-token-permissions:
|
||||||
needs: check-secrets
|
needs: check-secrets
|
||||||
if: needs.check-secrets.outputs.ready == 'true'
|
if: needs.check-secrets.outputs.ready == 'true'
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
has_write: ${{ steps.check.outputs.has_write }}
|
has_write: ${{ steps.check.outputs.has_write }}
|
||||||
steps:
|
steps:
|
||||||
@@ -101,7 +101,7 @@ jobs:
|
|||||||
check-tag:
|
check-tag:
|
||||||
needs: check-secrets
|
needs: check-secrets
|
||||||
if: needs.check-secrets.outputs.ready == 'true'
|
if: needs.check-secrets.outputs.ready == 'true'
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
skip: ${{ steps.check.outputs.skip }}
|
skip: ${{ steps.check.outputs.skip }}
|
||||||
steps:
|
steps:
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
needs: [ci, check-tag, check-secrets, check-token-permissions]
|
needs: [ci, check-tag, check-secrets, check-token-permissions]
|
||||||
if: needs.check-secrets.outputs.ready == 'true' && needs.check-tag.outputs.skip != 'true' && needs.check-token-permissions.outputs.has_write == 'true'
|
if: needs.check-secrets.outputs.ready == 'true' && needs.check-tag.outputs.skip != 'true' && needs.check-token-permissions.outputs.has_write == 'true'
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -310,6 +310,13 @@ jobs:
|
|||||||
git push origin "$BRANCH"
|
git push origin "$BRANCH"
|
||||||
git push origin "refs/tags/v${VERSION}"
|
git push origin "refs/tags/v${VERSION}"
|
||||||
|
|
||||||
|
- name: Generate GitHub App token
|
||||||
|
id: app-token
|
||||||
|
uses: actions/create-github-app-token@v3
|
||||||
|
with:
|
||||||
|
app-id: ${{ secrets.RELEASE_APP_ID }}
|
||||||
|
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
@@ -318,14 +325,7 @@ jobs:
|
|||||||
fail_on_unmatched_files: false
|
fail_on_unmatched_files: false
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- name: Generate GitHub App token
|
|
||||||
id: app-token
|
|
||||||
uses: actions/create-github-app-token@v3
|
|
||||||
with:
|
|
||||||
app-id: ${{ secrets.RELEASE_APP_ID }}
|
|
||||||
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Install GitHub CLI
|
- name: Install GitHub CLI
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: runners-privilegedescalation
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user