chore(deps): update actions/upload-artifact action to v4 - autoclosed #254
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test action | |
on: | |
pull_request: | |
push: | |
branches: [ '**' ] | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
jobs: | |
test-action: | |
permissions: | |
id-token: write | |
contents: write | |
env: | |
VAULT_ADDR: https://vault.sonar.build:8200 | |
name: Test SonarSource/gh-action_sbom on alpine:latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Vault Secrets | |
id: secrets | |
uses: hashicorp/vault-action@130d1f5f4fe645bb6c83e4225c04d64cfb62de6e # v2.5.0 | |
with: | |
url: ${{ env.VAULT_ADDR }} | |
exportEnv: false | |
method: jwt | |
path: jwt-ghwf | |
role: github-sonarsource-gh-action_sbom | |
secrets: | | |
development/kv/data/sign passphrase | gpg_passphrase; | |
development/kv/data/sign key | gpg_key; | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
path: ./ | |
- uses: ./ # SonarSource/gh-action_sbom | |
with: | |
image: alpine:latest | |
filename: test-action-bom.json | |
upload-artifact: true | |
upload-release-assets: true | |
env: | |
GPG_PRIVATE_KEY_PASSPHRASE: ${{ steps.secrets.outputs.gpg_passphrase }} | |
GPG_PRIVATE_KEY_BASE64: ${{ steps.secrets.outputs.gpg_key }} | |
- run: | | |
test -f test-action-bom.json.asc | |
echo "test-action-bom.json:" | |
head test-action-bom.json | |
- uses: ./ # SonarSource/gh-action_sbom | |
with: | |
image: alpine:latest | |
filename: test2-action-bom.json | |
upload-artifact: false | |
upload-release-assets: false |