Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 40 additions & 26 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "integration-test"

Check warning on line 1 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:1: overly broad permissions: default permissions used due to no permissions: block
on: # rebuild any PRs and main branch changes
pull_request:
push:
Expand All @@ -6,11 +6,13 @@
- master

jobs:
test: # make sure the action works on a clean machine without building

Check warning on line 9 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:9: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- uses: $/
id: run_action
with:
key: "keyB"
Expand All @@ -35,16 +37,20 @@
export_to: log,env,output
- name: 'Test Actions Parameters'
run: |
test "${{env.env1B}}" = "value1B"
test "${{env.env2B}}" = "value2B"
test "${{env.env3B}}" = "value3B"
test "${{steps.run_action.outputs.env1B}}" = "value1B"
test "${{steps.run_action.outputs.env2B}}" = "value2B"
test "${{steps.run_action.outputs.env3B}}" = "value3B"
test "${env1B}" = "value1B"
test "${env2B}" = "value2B"
test "${env3B}" = "value3B"
test "${STEPS_RUN_ACTION_OUTPUTS_ENV1B}" = "value1B"
test "${STEPS_RUN_ACTION_OUTPUTS_ENV2B}" = "value2B"
test "${STEPS_RUN_ACTION_OUTPUTS_ENV3B}" = "value3B"
env:
STEPS_RUN_ACTION_OUTPUTS_ENV1B: ${{steps.run_action.outputs.env1B}}
STEPS_RUN_ACTION_OUTPUTS_ENV2B: ${{steps.run_action.outputs.env2B}}
STEPS_RUN_ACTION_OUTPUTS_ENV3B: ${{steps.run_action.outputs.env3B}}
test-readme-example1:

Check warning on line 50 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:50: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: kanga333/variable-mapper@master

Check failure on line 53 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

unpinned-uses

integration-test.yml:53: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
key: "${{github.base_ref}}"
map: |
Expand All @@ -66,11 +72,11 @@
}
}
- name: Echo environment
run: echo ${{ env.environment }}
run: echo ${environment}
test-readme-example2:

Check warning on line 76 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:76: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: kanga333/variable-mapper@master

Check failure on line 79 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

unpinned-uses

integration-test.yml:79: unpinned action reference: action is not pinned to a hash (required by blanket policy)
id: export
with:
key: "${{github.base_ref}}"
Expand All @@ -86,13 +92,17 @@
export_to: env,log,output
- name: Echo environment and output
run: |
echo ${{ env.environment }}
echo ${{ steps.export.outputs.environment }}
echo ${environment}
echo ${STEPS_EXPORT_OUTPUTS_ENVIRONMENT}
env:
STEPS_EXPORT_OUTPUTS_ENVIRONMENT: ${{ steps.export.outputs.environment }}
test-readme-example3:

Check warning on line 99 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:99: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- uses: $/
id: export
with:
key: "first"
Expand All @@ -111,14 +121,16 @@
mode: first_match
- name: Echo environment and output
run: |
test "${{ env.env1 }}" = "value1"
test "${{ env.env2 }}" = "value2"
test "${{ env.env3 }}" = ""
test "${env1}" = "value1"
test "${env2}" = "value2"
test "${env3}" = ""
test-readme-example4:

Check warning on line 127 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:127: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- uses: $/
id: export
with:
key: "first"
Expand All @@ -137,14 +149,16 @@
mode: overwrite
- name: Echo environment and output
run: |
test "${{ env.env1 }}" = "value1_overwrite"
test "${{ env.env2 }}" = "value2"
test "${{ env.env3 }}" = "value3"
test "${env1}" = "value1_overwrite"
test "${env2}" = "value2"
test "${env3}" = "value3"
test-readme-example5:

Check warning on line 155 in .github/workflows/integration-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

integration-test.yml:155: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- uses: $/
id: export
with:
key: "first"
Expand All @@ -163,6 +177,6 @@
mode: fill
- name: Echo environment and output
run: |
test "${{ env.env1 }}" = "value1"
test "${{ env.env2 }}" = "value2"
test "${{ env.env3 }}" = "value3"
test "${env1}" = "value1"
test "${env2}" = "value2"
test "${env3}" = "value3"
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@

name: Create Release if version is bumped
jobs:
build:

Check warning on line 10 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

release.yml:10: overly broad permissions: default permissions used due to no permissions: block
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- run: git fetch --prune --unshallow --tags
- uses: kanga333/config-value-exporter@main

Check failure on line 19 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

unpinned-uses

release.yml:19: unpinned action reference: action is not pinned to a hash (required by blanket policy)
id: version
with:
key: version
file: package.json
- id: tag_check
run: |
git rev-parse v${{steps.version.outputs.result}} 2> /dev/null \
git rev-parse v${STEPS_VERSION_OUTPUTS_RESULT} 2> /dev/null \
|| echo 'exist=false' >> $GITHUB_OUTPUT
env:
STEPS_VERSION_OUTPUTS_RESULT: ${{steps.version.outputs.result}}
- name: Create Release
if: steps.tag_check.outputs.exist == 'false'
id: create_release
uses: actions/create-release@v1
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4

Check warning on line 33 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

archived-uses

release.yml:33: action or reusable workflow from archived repository: repository is archived
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
- master

jobs:
build_and_test: # make sure build/ci work properly

Check warning on line 9 in .github/workflows/unit-test.yml

View workflow job for this annotation

GitHub Actions / Scan GitHub Actions

excessive-permissions

unit-test.yml:9: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
with:
persist-credentials: false
- run: |
npm install
npm run all
Loading