-
-
Notifications
You must be signed in to change notification settings - Fork 63
fix: address all zizmor security findings in GitHub Actions workflows #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: copilot/chore-harden-github-workflows
Are you sure you want to change the base?
Changes from all commits
f279d21
5b2cb0b
1a42e8e
f959774
1a8dae3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,8 @@ updates: | |
| schedule: | ||
| interval: 'weekly' | ||
| day: 'saturday' | ||
| cooldown: | ||
| default-days: 7 | ||
| allow: | ||
| - dependency-type: 'all' | ||
| versioning-strategy: 'auto' | ||
|
|
@@ -21,6 +23,8 @@ updates: | |
| schedule: | ||
| interval: 'weekly' | ||
| day: 'saturday' | ||
| cooldown: | ||
| default-days: 7 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| labels: [ 'dependencies' ] | ||
| commit-message: | ||
| ## prefix maximum string length of 15 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,8 @@ jobs: | |
| - name: Checkout code | ||
| # see https://github.com/actions/checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| persist-credentials: false | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs manual testing - need to issue a test-release and see if this is sufficient |
||
| - name: Setup Python Environment | ||
| # see https://github.com/actions/setup-python | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | ||
|
|
@@ -71,6 +73,8 @@ jobs: | |
| - name: Checkout code | ||
| # see https://github.com/actions/checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Python Environment | ||
| # see https://github.com/actions/setup-python | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | ||
|
|
@@ -106,25 +110,27 @@ jobs: | |
| - name: Generate GitHub App Token | ||
| id: release-bot-token | ||
| # see https://github.com/actions/create-github-app-token | ||
| uses: actions/create-github-app-token@v3 | ||
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 | ||
| with: | ||
| # see https://github.com/organizations/CycloneDX/settings/apps/cyclonedx-releases | ||
| app-id: 3335294 | ||
| private-key: ${{ secrets.CDX_RELEASE_BOT_PRIVATE_KEY }} | ||
| - name: Get GitHub App User ID | ||
| id: release-bot-user-id | ||
| run: | | ||
| set -xeu | ||
| echo "user-id=$(gh api "/users/${{ steps.release-bot-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | ||
| env: | ||
| APP_SLUG: ${{ steps.release-bot-token.outputs.app-slug }} | ||
| GH_TOKEN: ${{ steps.release-bot-token.outputs.token }} | ||
| run: | | ||
| set -xeu | ||
| echo "user-id=$(gh api "/users/${APP_SLUG}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Checkout code | ||
| # see https://github.com/actions/checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ steps.release-bot-token.outputs.token }} | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup python | ||
| # see https://github.com/actions/setup-python | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the
github-actionsentry — referenced #965 in the PR description.